mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-21 20:56:45 +01:00
Fix improper missing permission message on /plot list world
This commit is contained in:
parent
495952acb0
commit
0a5c73478d
@ -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) {
|
||||||
|
@ -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 -> {
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user