mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-07-02 01:25:01 +02:00
Fix world teleports. Whoops.
This commit is contained in:
parent
5e7d58a1dd
commit
dd388d0d9f
|
@ -91,8 +91,11 @@ public class MVPermissions implements PermissionsInterface {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!canEnterLocation(p, d.getLocation())) {
|
if(!canEnterLocation(p, d.getLocation())) {
|
||||||
|
System.out.print("Can't enter location");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
System.out.print("Can't enter destination: " + this.hasPermission(p, d.getRequiredPermission(), false));
|
||||||
|
System.out.print("Can't enter destination: " + d.getRequiredPermission());
|
||||||
return this.hasPermission(p, d.getRequiredPermission(), false);
|
return this.hasPermission(p, d.getRequiredPermission(), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -106,7 +109,7 @@ public class MVPermissions implements PermissionsInterface {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// NO one can access a null permission (mainly used for destinations):w
|
// NO one can access a null permission (mainly used for destinations):w
|
||||||
if(node == null) {
|
if(node == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -101,7 +101,7 @@ public class WorldDestination implements MVDestination {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getRequiredPermission() {
|
public String getRequiredPermission() {
|
||||||
return this.world.getName();
|
return "multiverse.access."+this.world.getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user