Attempt to Fix permissions wildcard problem.

This commit is contained in:
DNx5 2016-01-05 07:21:24 +07:00
parent 627db6b9cf
commit fd73ce1562
2 changed files with 41 additions and 119 deletions

View File

@ -298,8 +298,8 @@ public class PermissionsManager implements PermissionsService {
} }
Player player = (Player) sender; Player player = (Player) sender;
return hasPermission(player, permissionNode.getNode(), def) return hasPermission(player, permissionNode.getNode(), def);
|| hasPermission(player, permissionNode.getWildcardNode().getNode(), def); // || hasPermission(player, permissionNode.getWildcardNode().getNode(), def);
} }
public boolean hasPermission(Player player, Iterable<PermissionNode> nodes, boolean def) { public boolean hasPermission(Player player, Iterable<PermissionNode> nodes, boolean def) {

View File

@ -45,120 +45,42 @@ commands:
usage: /converter <datatype> usage: /converter <datatype>
permissions: permissions:
authme.admin.*: authme.admin.*:
description: Gives access to all authme admin commands description: Give access to all admin commands.
children: children:
authme.admin.reload: true authme.admin.accounts: true
authme.admin.register: true authme.admin.changemail: true
authme.admin.changepassword: true authme.admin.changepassword: true
authme.admin.unregister: true
authme.admin.purge: true
authme.seeOtherAccounts: true # This isn't a child of the admin section! Probably doesn't work.
authme.admin.lastlogin: true
authme.admin.getemail: true
authme.admin.chgemail: true
authme.admin.purgelastpos: true
authme.admin.switchantibot: true
authme.bypassantibot: true # This isn't a child of the admin section! Probably doesn't work.
authme.admin.getip: true
authme.admin.converter: true authme.admin.converter: true
authme.admin.resetposition: true authme.admin.firstspawn: true
authme.admin.forcelogin: true authme.admin.forcelogin: true
authme.register: authme.admin.getemail: true
description: Register an account authme.admin.getip: true
default: true authme.admin.lastlogin: true
authme.login: authme.admin.purge: true
description: Login into a account authme.admin.purgebannedplayers: true
default: true authme.admin.purgelastpos: true
authme.changepassword: authme.admin.register: true
description: Change password of a account authme.admin.reload: true
default: true authme.admin.setfirstspawn: true
authme.logout: authme.admin.setspawn: true
description: Logout authme.admin.spawn: true
default: true authme.admin.switchantibot: true
authme.email: authme.admin.unregister: true
description: Email authme.player.*:
default: true description: Permission to use all player (non-admin) commands.
authme.allow2accounts: children:
description: allow more accounts for same ip authme.player.allow2accounts: true
default: false authme.player.bypassantibot: true
authme.seeOtherAccounts: authme.player.bypassforcesurvival: true
description: display other accounts about a player when he logs in authme.player.canbeforced: true
default: false authme.player.captcha: true
authme.unregister: authme.player.changepassword: true
description: unregister your account authme.player.email.add: true
default: true authme.player.email.change: true
authme.admin.reload: authme.player.email.recover: true
description: AuthMe reload commands authme.player.login: true
default: op authme.player.logout: true
authme.admin.register: authme.player.register: true
description: AuthMe register command authme.player.seeotheraccounts: true
default: op authme.player.unregister: true
authme.admin.changepassword: authme.player.vip: true
description: AuthMe changepassword command
default: op
authme.admin.unregister:
description: AuthMe unregister command
default: op
authme.admin.purge:
description: AuthMe unregister command
default: op
authme.admin.lastlogin:
description: Get last login date about a player
default: op
authme.admin.getemail:
description: Get last email about a player
default: op
authme.admin.chgemail:
description: Change a player email
default: op
authme.admin.accounts:
description: Display Players Accounts
default: op
authme.captcha:
description: Captcha
default: true
authme.admin.setspawn:
description: Set the AuthMe spawn point
default: op
authme.admin.spawn:
description: Teleport to AuthMe spawn point
default: op
authme.vip:
description: Allow vip slot when the server is full
default: op
authme.admin.purgebannedplayers:
description: Purge banned players
default: op
authme.bypassforcesurvival:
description: Bypass all ForceSurvival features
default: false
authme.admin.purgelastpos:
description: Purge last pos of players
default: op
authme.admin.switchantibot:
description: Switch AntiBot mode on/off
default: op
authme.bypassantibot:
description: Bypass the AntiBot check
default: op
authme.admin.setfirstspawn:
description: Set the AuthMe First Spawn Point
default: op
authme.admin.firstspawn:
description: Teleport to AuthMe First Spawn Point
default: op
authme.admin.getip:
description: Get IP from a player ( fake and real )
default: op
authme.admin.converter:
description: Allow /converter command
default: op
authme.admin.resetposition:
description: Reset last position for a player
default: op
authme.admin.forcelogin:
description: Force login for that player
default: op
authme.canbeforced:
description: Can this player be forced to login
default: true