Dieser Commit ist enthalten in:
NotMyFault 2020-05-20 11:41:36 +02:00 committet von GitHub
Ursprung b1b591f288
Commit 35c4de3484
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -32,6 +32,9 @@ public enum NavigationWand implements DoubleActionTraceTool {
@Override @Override
public boolean actSecondary(Platform server, LocalConfiguration config, Player player, LocalSession session) { public boolean actSecondary(Platform server, LocalConfiguration config, Player player, LocalSession session) {
if (!player.hasPermission("worldedit.navigation.jumpto.tool")) {
return false;
}
final int maxDist = config.navigationWandMaxDistance; final int maxDist = config.navigationWandMaxDistance;
if (maxDist <= 0) { if (maxDist <= 0) {
return false; return false;
@ -47,6 +50,9 @@ public enum NavigationWand implements DoubleActionTraceTool {
@Override @Override
public boolean actPrimary(Platform server, LocalConfiguration config, Player player, LocalSession session) { public boolean actPrimary(Platform server, LocalConfiguration config, Player player, LocalSession session) {
if (!player.hasPermission("worldedit.navigation.thru.tool")) {
return false;
}
final int maxDist = config.navigationWandMaxDistance; final int maxDist = config.navigationWandMaxDistance;
if (maxDist <= 0) { if (maxDist <= 0) {
return false; return false;