From 1d9253cffe2cff8469427b4ce57f24c154ea9431 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Thu, 29 Oct 2020 19:52:31 +0000 Subject: [PATCH] Optimised Kingdoms --- .../integrations/antigrief/plugins/AntigriefKingdoms.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 2807e31e..6c6ab72e 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 @@ -10,7 +10,6 @@ import org.bukkit.event.block.BlockPlaceEvent; import org.bukkit.inventory.EquipmentSlot; import org.kingdoms.constants.kingdom.Kingdom; import org.kingdoms.constants.land.Land; -import org.kingdoms.constants.player.KingdomPlayer; import org.kingdoms.managers.PvPManager; import org.kingdoms.managers.land.LandManager; @@ -31,7 +30,7 @@ public final class AntigriefKingdoms implements AntigriefWrapper { if(!land.isClaimed()) return true; Kingdom kingdom = land.getKingdom(); - return kingdom.getKingdomMembers().contains(KingdomPlayer.getKingdomPlayer(player)); + return kingdom.isMember(player); } @Override @@ -52,7 +51,7 @@ public final class AntigriefKingdoms implements AntigriefWrapper { if(!land.isClaimed()) return true; Kingdom kingdom = land.getKingdom(); - return kingdom.getKingdomMembers().contains(KingdomPlayer.getKingdomPlayer(player)); + return kingdom.isMember(player); } }