Fix improper missing permission message on /plot list world

This commit is contained in:
N0tMyFaultOG 2021-01-08 17:16:38 +01:00
parent 495952acb0
commit 0a5c73478d
No known key found for this signature in database
GPG Key ID: 823348042DA95A81
2 changed files with 3 additions and 3 deletions

View File

@ -204,7 +204,7 @@ public class ListCmd extends SubCommand {
return false; return false;
} }
if (!Permissions.hasPermission(player, "plots.list.world." + world)) { if (!Permissions.hasPermission(player, "plots.list.world." + world)) {
player.sendMessage(TranslatableCaption.of("permission.no_permission"), Templates.of("node", "plots.list.world" + world)); player.sendMessage(TranslatableCaption.of("permission.no_permission"), Templates.of("node", "plots.list.world." + world));
return false; return false;
} }
plotConsumer.accept(PlotQuery.newQuery().inWorld(world)); plotConsumer.accept(PlotQuery.newQuery().inWorld(world));
@ -226,7 +226,7 @@ public class ListCmd extends SubCommand {
return false; return false;
} }
if (!Permissions.hasPermission(player, "plots.list.world." + world)) { if (!Permissions.hasPermission(player, "plots.list.world." + world)) {
player.sendMessage(TranslatableCaption.of("permission.no_permission"), Templates.of("node", "plots.list.world" + world)); player.sendMessage(TranslatableCaption.of("permission.no_permission"), Templates.of("node", "plots.list.world." + world));
return false; return false;
} }
if (area == null) { if (area == null) {

View File

@ -1605,7 +1605,7 @@ public class Plot {
updateWorldBorder(); updateWorldBorder();
} }
this.getPlotModificationManager().setSign(player.getName()); this.getPlotModificationManager().setSign(player.getName());
player.sendMessage(TranslatableCaption.of("working.claimed")); player.sendMessage(TranslatableCaption.of("working.claimed"), Template.of("plot", String.valueOf(this.getId())));
if (teleport && Settings.Teleport.ON_CLAIM) { if (teleport && Settings.Teleport.ON_CLAIM) {
teleportPlayer(player, TeleportCause.COMMAND, result -> { teleportPlayer(player, TeleportCause.COMMAND, result -> {
}); });