mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-19 07:07:55 +01:00
Attempt to Fix permissions wildcard problem.
This commit is contained in:
parent
627db6b9cf
commit
fd73ce1562
@ -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) {
|
||||||
|
@ -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.converter: true
|
||||||
authme.admin.purge: true
|
authme.admin.firstspawn: true
|
||||||
authme.seeOtherAccounts: true # This isn't a child of the admin section! Probably doesn't work.
|
authme.admin.forcelogin: true
|
||||||
authme.admin.lastlogin: true
|
authme.admin.getemail: true
|
||||||
authme.admin.getemail: true
|
authme.admin.getip: true
|
||||||
authme.admin.chgemail: true
|
authme.admin.lastlogin: true
|
||||||
authme.admin.purgelastpos: true
|
authme.admin.purge: true
|
||||||
authme.admin.switchantibot: true
|
authme.admin.purgebannedplayers: true
|
||||||
authme.bypassantibot: true # This isn't a child of the admin section! Probably doesn't work.
|
authme.admin.purgelastpos: true
|
||||||
authme.admin.getip: true
|
authme.admin.register: true
|
||||||
authme.admin.converter: true
|
authme.admin.reload: true
|
||||||
authme.admin.resetposition: true
|
authme.admin.setfirstspawn: true
|
||||||
authme.admin.forcelogin: true
|
authme.admin.setspawn: true
|
||||||
authme.register:
|
authme.admin.spawn: true
|
||||||
description: Register an account
|
authme.admin.switchantibot: true
|
||||||
default: true
|
authme.admin.unregister: true
|
||||||
authme.login:
|
authme.player.*:
|
||||||
description: Login into a account
|
description: Permission to use all player (non-admin) commands.
|
||||||
default: true
|
children:
|
||||||
authme.changepassword:
|
authme.player.allow2accounts: true
|
||||||
description: Change password of a account
|
authme.player.bypassantibot: true
|
||||||
default: true
|
authme.player.bypassforcesurvival: true
|
||||||
authme.logout:
|
authme.player.canbeforced: true
|
||||||
description: Logout
|
authme.player.captcha: true
|
||||||
default: true
|
authme.player.changepassword: true
|
||||||
authme.email:
|
authme.player.email.add: true
|
||||||
description: Email
|
authme.player.email.change: true
|
||||||
default: true
|
authme.player.email.recover: true
|
||||||
authme.allow2accounts:
|
authme.player.login: true
|
||||||
description: allow more accounts for same ip
|
authme.player.logout: true
|
||||||
default: false
|
authme.player.register: true
|
||||||
authme.seeOtherAccounts:
|
authme.player.seeotheraccounts: true
|
||||||
description: display other accounts about a player when he logs in
|
authme.player.unregister: true
|
||||||
default: false
|
authme.player.vip: true
|
||||||
authme.unregister:
|
|
||||||
description: unregister your account
|
|
||||||
default: true
|
|
||||||
authme.admin.reload:
|
|
||||||
description: AuthMe reload commands
|
|
||||||
default: op
|
|
||||||
authme.admin.register:
|
|
||||||
description: AuthMe register command
|
|
||||||
default: op
|
|
||||||
authme.admin.changepassword:
|
|
||||||
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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user