From e3e00d34efb8c7d6dfc381575bfacce20ed9f6d7 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Wed, 25 Aug 2021 01:36:19 +0200 Subject: [PATCH] Improve error message claiming plots with ids --- Core/src/main/java/com/plotsquared/core/command/Auto.java | 5 +---- Core/src/main/resources/lang/messages_en.json | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/command/Auto.java b/Core/src/main/java/com/plotsquared/core/command/Auto.java index e607d93dc..a89ed9494 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Auto.java +++ b/Core/src/main/java/com/plotsquared/core/command/Auto.java @@ -234,7 +234,7 @@ public class Auto extends SubCommand { } } if (size_x < 1 || size_z < 1) { - player.sendMessage(TranslatableCaption.of("error.plot_size")); + player.sendMessage(TranslatableCaption.of("error.plot_size_negative")); } if (args.length > 1) { schematic = args[1]; @@ -244,9 +244,6 @@ public class Auto extends SubCommand { size_x = 1; size_z = 1; schematic = args[0]; - // PlayerFunctions.sendMessage(plr, - // "&cError: Invalid size (X,Y)"); - // return false; } } PlayerAutoPlotEvent event = this.eventDispatcher diff --git a/Core/src/main/resources/lang/messages_en.json b/Core/src/main/resources/lang/messages_en.json index 9bf458c05..8b806d43a 100644 --- a/Core/src/main/resources/lang/messages_en.json +++ b/Core/src/main/resources/lang/messages_en.json @@ -306,7 +306,7 @@ "errors.player_no_plots": "That player does not own any plots.", "errors.wait_for_timer": "A set block timer is bound to either the current plot or you. Please wait for it to finish.", "errors.tile_entity_cap_reached": "The total number of tile entities in this chunk may not exceed .", - "error.plot_size": "Error: size <= 0.", + "error.plot_size_negative": "Error: An input lower or equal to 0 is invalid.", "error.command_went_wrong": "Something went wrong when executing that command.", "errors.not_implemented": "Not implemented.", "errors.stacktrace_begin": "=== Begin of stacktrace ===",