Return false if error.

This commit is contained in:
Tastybento 2018-02-06 21:45:10 -08:00
parent 3e2d2ec2d6
commit 00470b1fc8

View File

@ -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);