mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-27 21:27:44 +01:00
Return false if error.
This commit is contained in:
parent
3e2d2ec2d6
commit
00470b1fc8
@ -37,12 +37,12 @@ public class IslandResetnameCommand extends CompositeCommand {
|
||||
|
||||
if (!getIslands().hasIsland(playerUUID)) {
|
||||
user.sendMessage("general.errors.no-island");
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!getIslands().isOwner(playerUUID)) {
|
||||
user.sendMessage("general.errors.not-leader");
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
// Resets the island name
|
||||
getIslands().getIsland(playerUUID).setName(null);
|
||||
|
Loading…
Reference in New Issue
Block a user