State when a perm has been found in debug, Fix The TeleportCommand not obeying enforce access

This commit is contained in:
Eric Stokes 2011-10-16 02:06:18 -06:00
parent 2d0eb7e7bb
commit 56926dc14c
2 changed files with 6 additions and 2 deletions

View File

@ -102,7 +102,7 @@ public class TeleportCommand extends MultiverseCommand {
return;
}
if (teleporter != null && !this.plugin.getMVPerms().canEnterDestination(teleporter, d)) {
if (MultiverseCore.EnforceAccess && teleporter != null && !this.plugin.getMVPerms().canEnterDestination(teleporter, d)) {
if (teleportee.equals(teleporter)) {
teleporter.sendMessage("Doesn't look like you're allowed to go " + ChatColor.RED + "there...");
} else {

View File

@ -135,7 +135,11 @@ public class MVPermissions implements PermissionsInterface {
}
Player player = (Player) sender;
this.plugin.log(Level.FINEST, "Checking to see if player [" + player.getName() + "] has permission [" + node + "]");
return sender.hasPermission(node);
boolean hasPermission = sender.hasPermission(node);
if(hasPermission) {
this.plugin.log(Level.FINER, "Player [" + player.getName() + "] HAS PERMISSION [" + node + "]!");
}
return hasPermission;
}
public String getType() {