implement checking permissions of an offline player

This commit is contained in:
Gnat008
2016-06-17 20:49:03 -04:00
parent 3629c51fc1
commit 16e9990723
3 changed files with 28 additions and 3 deletions
@@ -258,14 +258,14 @@ public class PermissionsManager {
*
* @return
*/
public boolean hasPermission(String name, PermissionNode permissionNode) {
public boolean hasPermissionOffline(String name, PermissionNode permissionNode) {
// Check if the permission node is null
if (permissionNode == null) {
return true;
}
if (!isEnabled()) {
return false;
return permissionNode.getDefaultPermission().evaluateOffline(name);
}
return handler.hasPermission(name, permissionNode);