Fix world teleports. Whoops.

This commit is contained in:
Eric Stokes 2011-08-03 20:24:44 -06:00
parent 5e7d58a1dd
commit dd388d0d9f
2 changed files with 5 additions and 2 deletions

View File

@ -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;
}

View File

@ -101,7 +101,7 @@ public class WorldDestination implements MVDestination {
@Override
public String getRequiredPermission() {
return this.world.getName();
return "multiverse.access."+this.world.getName();
}
}