diff --git a/pom.xml b/pom.xml index 710070e..364567f 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ betterbox.mine.game BetterElo - 3.2.50-SNAPSHOT + 3.2.51-SNAPSHOT jar BetterElo diff --git a/src/main/java/betterbox/mine/game/betterelo/Event.java b/src/main/java/betterbox/mine/game/betterelo/Event.java index 3c0dc89..7b870ac 100644 --- a/src/main/java/betterbox/mine/game/betterelo/Event.java +++ b/src/main/java/betterbox/mine/game/betterelo/Event.java @@ -518,6 +518,7 @@ public void onPlayerInteract(PlayerInteractEvent event) { ItemStack chestplate = player.getInventory().getChestplate(); if (chestplate == null || !chestplate.getType().toString().contains("ELYTRA")) { + event.setCancelled(true); pluginLogger.log(PluginLogger.LogLevel.DEBUG_LVL3,"Event.onPlayerInteract player is not wearing Elytra!"); return;