diff --git a/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/EpicHoppersPlugin.java b/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/EpicHoppersPlugin.java index 837b1d8..b77864d 100644 --- a/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/EpicHoppersPlugin.java +++ b/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/EpicHoppersPlugin.java @@ -14,7 +14,7 @@ import com.songoda.epichoppers.api.utils.ProtectionPluginHook; import com.songoda.epichoppers.boost.BoostData; import com.songoda.epichoppers.boost.BoostManager; import com.songoda.epichoppers.command.CommandManager; -import com.songoda.epichoppers.handlers.EnchantmentHandler; +import com.songoda.epichoppers.enchantment.Enchantment; import com.songoda.epichoppers.handlers.HopHandler; import com.songoda.epichoppers.handlers.TeleportHandler; import com.songoda.epichoppers.hooks.*; @@ -67,7 +67,7 @@ public class EpicHoppersPlugin extends JavaPlugin implements EpicHoppers { private static EpicHoppersPlugin INSTANCE; public References references = null; - public EnchantmentHandler enchantmentHandler; + public Enchantment enchantmentHandler; private List protectionHooks = new ArrayList<>(); private ClaimableProtectionPluginHook factionsHook, townyHook, aSkyblockHook, uSkyblockHook, skyBlockEarhHook; private SettingsManager settingsManager; @@ -130,7 +130,7 @@ public class EpicHoppersPlugin extends JavaPlugin implements EpicHoppers { this.update(); } - this.enchantmentHandler = new EnchantmentHandler(); + this.enchantmentHandler = new Enchantment(); this.hopperManager = new EHopperManager(); this.playerDataManager = new PlayerDataManager(); this.boostManager = new BoostManager(); diff --git a/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/handlers/EnchantmentHandler.java b/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/enchantment/Enchantment.java similarity index 87% rename from EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/handlers/EnchantmentHandler.java rename to EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/enchantment/Enchantment.java index 2c1c4ec..6640c65 100644 --- a/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/handlers/EnchantmentHandler.java +++ b/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/enchantment/Enchantment.java @@ -1,4 +1,4 @@ -package com.songoda.epichoppers.handlers; +package com.songoda.epichoppers.enchantment; import com.songoda.epichoppers.utils.Debugger; import com.songoda.epichoppers.utils.Methods; @@ -12,15 +12,15 @@ import java.util.ArrayList; /** * Created by songoda on 3/22/2017. */ -public class EnchantmentHandler { +public class Enchantment { - public ItemStack createSyncTouch(ItemStack item, Block b) { + public ItemStack createSyncTouch(ItemStack item, Block block) { try { ItemMeta itemmeta = item.getItemMeta(); ArrayList lore = new ArrayList<>(); - if (b != null) { + if (block != null) { lore.add(Methods.formatText("&aSync Touch")); - lore.add(Methods.convertToInvisibleString(Methods.serializeLocation(b))); + lore.add(Methods.convertToInvisibleString(Methods.serializeLocation(block))); } else { lore.add(Methods.formatText("&7Sync Touch")); }