Fixes missing locale text

The message was linked to a non-existing path.
This commit is contained in:
BONNe 2023-10-20 20:01:41 +03:00 committed by GitHub
parent ea5529f077
commit af3b0bba2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ public class IslandCreateCommand extends CompositeCommand {
int max = user.getPermissionValue(this.getIWM().getAddon(getWorld()).map(GameModeAddon::getPermissionPrefix).orElse("") + "island.number", this.getIWM().getWorldSettings(getWorld()).getConcurrentIslands()); int max = user.getPermissionValue(this.getIWM().getAddon(getWorld()).map(GameModeAddon::getPermissionPrefix).orElse("") + "island.number", this.getIWM().getWorldSettings(getWorld()).getConcurrentIslands());
if (num >= max) { if (num >= max) {
// You cannot make an island // You cannot make an island
user.sendMessage("general.errors.you-cannot-make"); user.sendMessage("commands.island.create.you-cannot-make");
return false; return false;
} }
if (getIWM().getMaxIslands(getWorld()) > 0 if (getIWM().getMaxIslands(getWorld()) > 0