diff --git a/pom.xml b/pom.xml index 951c45b..16554fc 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ net.t2code Alias - 1.3_beta-1 + 1.3_beta-2 jar T2C-Alias diff --git a/src/main/java/net/t2code/alias/Spigot/confirm/gui/GuiListener.java b/src/main/java/net/t2code/alias/Spigot/confirm/gui/GuiListener.java index 0de035b..097ddc4 100644 --- a/src/main/java/net/t2code/alias/Spigot/confirm/gui/GuiListener.java +++ b/src/main/java/net/t2code/alias/Spigot/confirm/gui/GuiListener.java @@ -20,16 +20,16 @@ public class GuiListener implements Listener { if (e.getClickedInventory() != e.getWhoClicked().getOpenInventory().getTopInventory()) return; switch (e.getSlot()) { case 12: + Cache.openPlayers.remove(player.getUniqueId()); + player.closeInventory(); ExecuteAlias.storage(player, true); break; case 14: + Cache.openPlayers.remove(player.getUniqueId()); + player.closeInventory(); ExecuteAlias.storage(player, false); break; - default: - return; } - Cache.openPlayers.remove(player.getUniqueId()); - player.closeInventory(); } @EventHandler