mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-24 00:15:16 +01:00
Fixed issue #860 about a comp bug with KingdomsX.
This commit is contained in:
parent
9af5c358dd
commit
2b6f00d7fa
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user