From 2b6f00d7fab9dbb091fa53227f1c07d45bae570d Mon Sep 17 00:00:00 2001 From: Ka0rX Date: Mon, 5 Jun 2023 21:29:20 +0100 Subject: [PATCH] Fixed issue #860 about a comp bug with KingdomsX. --- .../Indyuce/mmocore/guild/compat/KingdomsXGuildModule.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/guild/compat/KingdomsXGuildModule.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/guild/compat/KingdomsXGuildModule.java index d0f13c88..a170adea 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/guild/compat/KingdomsXGuildModule.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/guild/compat/KingdomsXGuildModule.java @@ -17,7 +17,7 @@ public class KingdomsXGuildModule implements GuildModule { @Override public AbstractGuild getGuild(PlayerData playerData) { - KingdomPlayer kPlayer = Kingdoms.get().getDataHandlers().getKingdomPlayerManager().getData(playerData.getUniqueId()); + KingdomPlayer kPlayer = KingdomPlayer.getKingdomPlayer(playerData.getPlayer()); if (kPlayer == null) return null; @@ -28,7 +28,7 @@ public class KingdomsXGuildModule implements GuildModule { @Override public Relationship getRelationship(Player player, Player target) { - final KingdomPlayer player1 = Kingdoms.get().getDataHandlers().getKingdomPlayerManager().getData(player.getUniqueId()); + final KingdomPlayer player1 = KingdomPlayer.getKingdomPlayer(player); if (player1 == null) return Relationship.GUILD_NEUTRAL; @@ -36,7 +36,7 @@ public class KingdomsXGuildModule implements GuildModule { if (kingdom1 == null) return Relationship.GUILD_NEUTRAL; - final KingdomPlayer player2 = Kingdoms.get().getDataHandlers().getKingdomPlayerManager().getData(target.getUniqueId()); + final KingdomPlayer player2 = KingdomPlayer.getKingdomPlayer(target.getPlayer()); if (player2 == null) return Relationship.GUILD_NEUTRAL;