mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-21 20:56:45 +01:00
Adjust improper origin -> target message of plot moving
This commit is contained in:
parent
955341ff9f
commit
d8f19cec66
@ -66,11 +66,7 @@ public class Copy extends SubCommand {
|
||||
return false;
|
||||
}
|
||||
if (plot1.equals(plot2)) {
|
||||
player.sendMessage(TranslatableCaption.of("invalid.not_valid_plot_id"));
|
||||
player.sendMessage(
|
||||
TranslatableCaption.of("commandconfig.command_syntax"),
|
||||
Template.of("value", "/plot copy <X;Z>")
|
||||
);
|
||||
player.sendMessage(TranslatableCaption.of("invalid.origin_cant_be_target"));
|
||||
return false;
|
||||
}
|
||||
if (!plot1.getArea().isCompatible(plot2.getArea())) {
|
||||
|
@ -92,11 +92,7 @@ public class Move extends SubCommand {
|
||||
plot2 = area.getPlotAbs(plot1.getId());
|
||||
}
|
||||
if (plot1.equals(plot2)) {
|
||||
player.sendMessage(TranslatableCaption.of("invalid.not_valid_plot_id"));
|
||||
player.sendMessage(
|
||||
TranslatableCaption.of("commandconfig.command_syntax"),
|
||||
Template.of("value", "/plot copy <X;Z>")
|
||||
);
|
||||
player.sendMessage(TranslatableCaption.of("invalid.origin_cant_be_target"));
|
||||
return CompletableFuture.completedFuture(false);
|
||||
}
|
||||
if (!plot1.getArea().isCompatible(plot2.getArea()) && (!override || !Permissions
|
||||
|
@ -70,11 +70,7 @@ public class Swap extends SubCommand {
|
||||
return CompletableFuture.completedFuture(false);
|
||||
}
|
||||
if (plot1.equals(plot2)) {
|
||||
player.sendMessage(TranslatableCaption.of("invalid.not_valid_plot_id"));
|
||||
player.sendMessage(
|
||||
TranslatableCaption.of("commandconfig.command_syntax"),
|
||||
Template.of("value", "/plot copy <X;Z>")
|
||||
);
|
||||
player.sendMessage(TranslatableCaption.of("invalid.origin_cant_be_target"));
|
||||
return CompletableFuture.completedFuture(false);
|
||||
}
|
||||
if (!plot1.getArea().isCompatible(plot2.getArea())) {
|
||||
|
@ -218,6 +218,7 @@
|
||||
"invalid.not_allowed_block": "<prefix><red>That block is not allowed: <gray><value></gray></red>",
|
||||
"invalid.not_valid_number": "<prefix><red>That's not a valid number within the range: </red><gray><value></gray>",
|
||||
"invalid.not_valid_plot_id": "<prefix><red>That's not a valid plot ID.</red>",
|
||||
"invalid.origin_cant_be_target": "<prefix><red>The origin and target location cannot be the same.</red>",
|
||||
"invalid.found_no_plots": "<prefix><red>Found no plots with your search query.</red>",
|
||||
"invalid.number_not_in_range": "<prefix><red>That's not a valid number within the range: <gray>(<min>, <max>)</gray></red>",
|
||||
"invalid.number_not_positive": "<red>That's not a positive number: <gray><value></gray></red>",
|
||||
|
Loading…
Reference in New Issue
Block a user