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;
}
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;
}
plotConsumer.accept(PlotQuery.newQuery().inWorld(world));
@ -226,7 +226,7 @@ public class ListCmd extends SubCommand {
return false;
}
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;
}
if (area == null) {

View File

@ -1605,7 +1605,7 @@ public class Plot {
updateWorldBorder();
}
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) {
teleportPlayer(player, TeleportCause.COMMAND, result -> {
});