mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Fixes #427
This commit is contained in:
parent
b1b591f288
commit
35c4de3484
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user