From 00470b1fc8f3ae3597f0421f6b4159d5837f33a6 Mon Sep 17 00:00:00 2001 From: Tastybento Date: Tue, 6 Feb 2018 21:45:10 -0800 Subject: [PATCH] Return false if error. --- .../bskyblock/commands/island/IslandResetnameCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/us/tastybento/bskyblock/commands/island/IslandResetnameCommand.java b/src/main/java/us/tastybento/bskyblock/commands/island/IslandResetnameCommand.java index 077b0afd0..d3b298e0c 100644 --- a/src/main/java/us/tastybento/bskyblock/commands/island/IslandResetnameCommand.java +++ b/src/main/java/us/tastybento/bskyblock/commands/island/IslandResetnameCommand.java @@ -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);