diff --git a/Core/src/main/java/com/plotsquared/core/command/Add.java b/Core/src/main/java/com/plotsquared/core/command/Add.java index 4850addf7..7c0d204bd 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Add.java +++ b/Core/src/main/java/com/plotsquared/core/command/Add.java @@ -71,8 +71,8 @@ public class Add extends Command { checkTrue(plot.isOwner(player.getUUID()) || Permissions .hasPermission(player, Captions.PERMISSION_ADMIN_COMMAND_TRUST), Captions.NO_PLOT_PERMS); - checkTrue(args.length == 1, Captions.COMMAND_SYNTAX, getUsage()); - + checkTrue(args.length == 1, TranslatableCaption.of("commandconfig.command_syntax"), + Template.of("value", "/plot add ")); final CompletableFuture future = new CompletableFuture<>(); PlayerManager.getUUIDsFromString(args[0], (uuids, throwable) -> { if (throwable != null) { @@ -86,7 +86,8 @@ public class Add extends Command { return; } else { try { - checkTrue(!uuids.isEmpty(), Captions.INVALID_PLAYER, args[0]); + checkTrue(!uuids.isEmpty(), TranslatableCaption.of("errors.invalid_player"), + Template.of("value", args[0])); Iterator iterator = uuids.iterator(); int size = plot.getTrusted().size() + plot.getMembers().size(); while (iterator.hasNext()) { diff --git a/Core/src/main/resources/lang/messages_en.json b/Core/src/main/resources/lang/messages_en.json index f70d4ae71..75b9bff63 100644 --- a/Core/src/main/resources/lang/messages_en.json +++ b/Core/src/main/resources/lang/messages_en.json @@ -415,7 +415,7 @@ "owner.now_owner": "You are now the plot owner of plot .", "signs.owner_sign_line_1": "ID: ", - "signs.owner_sign_line_2": "Owner:", + "signs.owner_sign_line_2": "Owner: ", "signs.owner_sign_line_3": "", "signs.owner_sign_line_4": "Claimed",