diff --git a/Plugin/src/main/java/com/willfp/ecoenchants/integrations/antigrief/plugins/AntigriefKingdoms.java b/Plugin/src/main/java/com/willfp/ecoenchants/integrations/antigrief/plugins/AntigriefKingdoms.java index 6c6ab72e..e2e18e5a 100644 --- a/Plugin/src/main/java/com/willfp/ecoenchants/integrations/antigrief/plugins/AntigriefKingdoms.java +++ b/Plugin/src/main/java/com/willfp/ecoenchants/integrations/antigrief/plugins/AntigriefKingdoms.java @@ -14,12 +14,10 @@ import org.kingdoms.managers.PvPManager; import org.kingdoms.managers.land.LandManager; public final class AntigriefKingdoms implements AntigriefWrapper { - private final LandManager landManager = new LandManager(); - @Override public boolean canBreakBlock(Player player, Block block) { BlockBreakEvent event = new BlockBreakEvent(block, player); - landManager.onBreak(event); + LandManager.onBreak(event); return !event.isCancelled(); } @@ -37,7 +35,7 @@ public final class AntigriefKingdoms implements AntigriefWrapper { public boolean canPlaceBlock(Player player, Block block) { Block placedOn = block.getRelative(0, -1, 0); BlockPlaceEvent event = new BlockPlaceEvent(block, block.getState(), placedOn, player.getInventory().getItemInMainHand(), player, true, EquipmentSlot.HAND); - landManager.onPlace(event); + LandManager.onPlace(event); return !event.isCancelled(); } diff --git a/lib/Kingdoms-1.9.2.0.0.2.jar b/lib/Kingdoms-1.9.2.0.0.2.jar new file mode 100644 index 00000000..7e1b265b Binary files /dev/null and b/lib/Kingdoms-1.9.2.0.0.2.jar differ diff --git a/lib/Kingdoms-1.9.2.jar b/lib/Kingdoms-1.9.2.jar deleted file mode 100644 index eafe59b0..00000000 Binary files a/lib/Kingdoms-1.9.2.jar and /dev/null differ