mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-07 03:11:02 +01:00
State when a perm has been found in debug, Fix The TeleportCommand not obeying enforce access
This commit is contained in:
parent
2d0eb7e7bb
commit
56926dc14c
@ -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 {
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user