diff --git a/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/anchor/EAnchor.java b/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/anchor/EAnchor.java index c07b1c7..d8ddb09 100644 --- a/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/anchor/EAnchor.java +++ b/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/anchor/EAnchor.java @@ -87,11 +87,11 @@ public class EAnchor implements Anchor { if (instance.getConfig().getBoolean("Main.Add Time With Economy")) { - inventory.setItem(11, itemXP); + inventory.setItem(11, itemECO); } if (instance.getConfig().getBoolean("Main.Add Time With XP")) { - inventory.setItem(15, itemECO); + inventory.setItem(15, itemXP); } player.openInventory(inventory); diff --git a/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/command/commands/CommandEpicAnchors.java b/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/command/commands/CommandEpicAnchors.java index 697e293..f391f0e 100644 --- a/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/command/commands/CommandEpicAnchors.java +++ b/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/command/commands/CommandEpicAnchors.java @@ -34,7 +34,7 @@ public class CommandEpicAnchors extends AbstractCommand { @Override public String getSyntax() { - return "/EpicHoppers"; + return "/EpicAnchors"; } @Override diff --git a/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/events/InventoryListeners.java b/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/events/InventoryListeners.java index 3129be0..f92272b 100644 --- a/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/events/InventoryListeners.java +++ b/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/events/InventoryListeners.java @@ -28,11 +28,11 @@ public class InventoryListeners implements Listener { event.setCancelled(true); - if (event.getSlot() == 11 && instance.getConfig().getBoolean("Main.Add Time With XP")) { + if (event.getSlot() == 15 && instance.getConfig().getBoolean("Main.Add Time With XP")) { if (!event.getCurrentItem().getItemMeta().getDisplayName().equals("§l")) { ((EAnchor) anchor).addTime("XP", player); } - } else if (event.getSlot() == 15 && instance.getConfig().getBoolean("Main.Add Time With Economy")) { + } else if (event.getSlot() == 11 && instance.getConfig().getBoolean("Main.Add Time With Economy")) { if (!event.getCurrentItem().getItemMeta().getDisplayName().equals("§l")) { ((EAnchor) anchor).addTime("ECO", player); } diff --git a/EpicAnchors-Plugin/src/main/resources/en_US.lang b/EpicAnchors-Plugin/src/main/resources/en_US.lang index 0d90fdf..aff6348 100644 --- a/EpicAnchors-Plugin/src/main/resources/en_US.lang +++ b/EpicAnchors-Plugin/src/main/resources/en_US.lang @@ -19,4 +19,5 @@ command.give.success = "&7You have been given a ChunkAnchor." #Event Messages -event.general.nopermission = "&cYou do not have permission to do that." \ No newline at end of file +event.general.nopermission = "&cYou do not have permission to do that." +event.upgrade.cannotafford = "&cYou cant afford that" \ No newline at end of file