mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-28 05:35: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)) {
|
if (!getIslands().hasIsland(playerUUID)) {
|
||||||
user.sendMessage("general.errors.no-island");
|
user.sendMessage("general.errors.no-island");
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!getIslands().isOwner(playerUUID)) {
|
if (!getIslands().isOwner(playerUUID)) {
|
||||||
user.sendMessage("general.errors.not-leader");
|
user.sendMessage("general.errors.not-leader");
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
// Resets the island name
|
// Resets the island name
|
||||||
getIslands().getIsland(playerUUID).setName(null);
|
getIslands().getIsland(playerUUID).setName(null);
|
||||||
|
Loading…
Reference in New Issue
Block a user