mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-07 11:20:32 +01: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;
|
||||
}
|
||||
if(!canEnterLocation(p, d.getLocation())) {
|
||||
System.out.print("Can't enter location");
|
||||
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);
|
||||
}
|
||||
|
||||
@ -106,7 +109,7 @@ public class MVPermissions implements PermissionsInterface {
|
||||
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) {
|
||||
return false;
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ public class WorldDestination implements MVDestination {
|
||||
|
||||
@Override
|
||||
public String getRequiredPermission() {
|
||||
return this.world.getName();
|
||||
return "multiverse.access."+this.world.getName();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user