Fixed likely NPE in IslandTeamKickCommand

This commit is contained in:
Florian CUNY 2019-02-10 13:21:01 +01:00
parent 890217939b
commit f71ca4f084

View File

@ -34,7 +34,7 @@ public class IslandTeamKickCommand extends ConfirmableCommand {
user.sendMessage("general.errors.no-team");
return false;
}
if (!getOwner(getWorld(), user).equals(user.getUniqueId())) {
if (user.getUniqueId() != getOwner(getWorld(), user)) {
user.sendMessage("general.errors.not-owner");
return false;
}