Skip to content

Commit 75fd77c

Browse files
committed
Fix: use the correct error message if the player is not the owner of the island
1 parent 000effb commit 75fd77c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/world/bentobox/bentobox/api/commands/island/IslandResetCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public boolean canExecute(User user, String label, List<String> args) {
5656
return false;
5757
}
5858
if (!getIslands().hasIsland(getWorld(), user.getUniqueId())) {
59-
user.sendMessage("general.errors.no-island");
59+
user.sendMessage("general.errors.not-owner");
6060
return false;
6161
}
6262
int resetsLeft = getPlayers().getResetsLeft(getWorld(), user.getUniqueId());

0 commit comments

Comments
 (0)