Improve error message claiming plots with ids

This commit is contained in:
NotMyFault 2021-08-25 01:36:19 +02:00
parent 40e651188e
commit e3e00d34ef
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C
2 changed files with 2 additions and 5 deletions

View File

@ -234,7 +234,7 @@ public class Auto extends SubCommand {
} }
} }
if (size_x < 1 || size_z < 1) { 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) { if (args.length > 1) {
schematic = args[1]; schematic = args[1];
@ -244,9 +244,6 @@ public class Auto extends SubCommand {
size_x = 1; size_x = 1;
size_z = 1; size_z = 1;
schematic = args[0]; schematic = args[0];
// PlayerFunctions.sendMessage(plr,
// "&cError: Invalid size (X,Y)");
// return false;
} }
} }
PlayerAutoPlotEvent event = this.eventDispatcher PlayerAutoPlotEvent event = this.eventDispatcher

View File

@ -306,7 +306,7 @@
"errors.player_no_plots": "<prefix><gray>That player does not own any plots.</gray>", "errors.player_no_plots": "<prefix><gray>That player does not own any plots.</gray>",
"errors.wait_for_timer": "<prefix><gray>A set block timer is bound to either the current plot or you. Please wait for it to finish.</gray>", "errors.wait_for_timer": "<prefix><gray>A set block timer is bound to either the current plot or you. Please wait for it to finish.</gray>",
"errors.tile_entity_cap_reached": "<prefix><red>The total number of tile entities in this chunk may not exceed <gold><amount></gold>.</red>", "errors.tile_entity_cap_reached": "<prefix><red>The total number of tile entities in this chunk may not exceed <gold><amount></gold>.</red>",
"error.plot_size": "<prefix><red>Error: size <= 0.</red>", "error.plot_size_negative": "<prefix><red>Error: An input lower or equal to 0 is invalid.</red>",
"error.command_went_wrong": "<prefix><red>Something went wrong when executing that command.</red>", "error.command_went_wrong": "<prefix><red>Something went wrong when executing that command.</red>",
"errors.not_implemented": "<prefix><red>Not implemented.</red>", "errors.not_implemented": "<prefix><red>Not implemented.</red>",
"errors.stacktrace_begin": "<red>=== Begin of stacktrace ===</red>", "errors.stacktrace_begin": "<red>=== Begin of stacktrace ===</red>",