mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 05:28:59 +00:00
Some more merge fixes
This commit is contained in:
@@ -123,7 +123,7 @@ public class Barrel implements InventoryHolder {
|
|||||||
|
|
||||||
// Call event
|
// Call event
|
||||||
BarrelAccessEvent accessEvent = new BarrelAccessEvent(this, player, event.getClickedBlock());
|
BarrelAccessEvent accessEvent = new BarrelAccessEvent(this, player, event.getClickedBlock());
|
||||||
// Listened to by WGBarrelNew, WGBarrelOld, GriefPreventionBarrel (IntegrationListener)
|
// Listened to by WGBarrel7, WGBarrelNew, WGBarrelOld, GriefPreventionBarrel (IntegrationListener)
|
||||||
P.p.getServer().getPluginManager().callEvent(accessEvent);
|
P.p.getServer().getPluginManager().callEvent(accessEvent);
|
||||||
if (accessEvent.isCancelled()) {
|
if (accessEvent.isCancelled()) {
|
||||||
P.p.msg(player, P.p.languageReader.get("Error_NoBarrelAccess"));
|
P.p.msg(player, P.p.languageReader.get("Error_NoBarrelAccess"));
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ public class Brew {
|
|||||||
|
|
||||||
public Brew(BIngredients ingredients) {
|
public Brew(BIngredients ingredients) {
|
||||||
this.ingredients = ingredients;
|
this.ingredients = ingredients;
|
||||||
|
touch();
|
||||||
}
|
}
|
||||||
|
|
||||||
// quality already set
|
// quality already set
|
||||||
@@ -53,6 +54,7 @@ public class Brew {
|
|||||||
this.ingredients = ingredients;
|
this.ingredients = ingredients;
|
||||||
this.quality = quality;
|
this.quality = quality;
|
||||||
this.currentRecipe = recipe;
|
this.currentRecipe = recipe;
|
||||||
|
touch();
|
||||||
}
|
}
|
||||||
|
|
||||||
// loading with all values set
|
// loading with all values set
|
||||||
|
|||||||
@@ -577,7 +577,6 @@ public class P extends JavaPlugin {
|
|||||||
|
|
||||||
// Third-Party
|
// Third-Party
|
||||||
useWG = config.getBoolean("useWorldGuard", true) && getServer().getPluginManager().isPluginEnabled("WorldGuard");
|
useWG = config.getBoolean("useWorldGuard", true) && getServer().getPluginManager().isPluginEnabled("WorldGuard");
|
||||||
hasVault = getServer().getPluginManager().isPluginEnabled("Vault");
|
|
||||||
|
|
||||||
if (useWG) {
|
if (useWG) {
|
||||||
Plugin plugin = Bukkit.getPluginManager().getPlugin("WorldEdit");
|
Plugin plugin = Bukkit.getPluginManager().getPlugin("WorldEdit");
|
||||||
@@ -709,7 +708,6 @@ public class P extends JavaPlugin {
|
|||||||
FileConfiguration data = YamlConfiguration.loadConfiguration(file);
|
FileConfiguration data = YamlConfiguration.loadConfiguration(file);
|
||||||
|
|
||||||
Brew.installTime = data.getLong("installTime", System.currentTimeMillis());
|
Brew.installTime = data.getLong("installTime", System.currentTimeMillis());
|
||||||
|
|
||||||
MCBarrel.mcBarrelTime = data.getLong("MCBarrelTime", 0);
|
MCBarrel.mcBarrelTime = data.getLong("MCBarrelTime", 0);
|
||||||
|
|
||||||
Brew.loadSeed(data);
|
Brew.loadSeed(data);
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ public class DataSave extends BukkitRunnable {
|
|||||||
FileConfiguration configFile = new YamlConfiguration();
|
FileConfiguration configFile = new YamlConfiguration();
|
||||||
|
|
||||||
configFile.set("installTime", Brew.installTime);
|
configFile.set("installTime", Brew.installTime);
|
||||||
|
|
||||||
configFile.set("MCBarrelTime", MCBarrel.mcBarrelTime);
|
configFile.set("MCBarrelTime", MCBarrel.mcBarrelTime);
|
||||||
|
|
||||||
Brew.writeSeed(configFile);
|
Brew.writeSeed(configFile);
|
||||||
|
|||||||
Reference in New Issue
Block a user