fix??????????????

This commit is contained in:
speed 2021-01-06 10:56:20 -05:00
parent 56134e2f32
commit ca7e623dd5

View file

@ -38,9 +38,15 @@ public class ChatListener implements Listener
GuildRank rank = null;
for (GuildRank r : guild.getRanks())
{
if (r.getMembers().contains(player.getUniqueId()))
if (r != null)
{
rank = r;
if (r.getMembers() != null)
{
if (r.getMembers().contains(player.getUniqueId()))
{
rank = r;
}
}
}
}