mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-24 03:35:11 +01:00
Fixed likely NPE in IslandTeamKickCommand
This commit is contained in:
parent
890217939b
commit
f71ca4f084
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user