mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-19 15:17:56 +01:00
Fix HelpPrinter printing the enum name instead of the permission node
This commit is contained in:
parent
1e2a0f98ba
commit
169e38be59
@ -102,7 +102,7 @@ public class HelpPrinter {
|
|||||||
if (sender instanceof Player)
|
if (sender instanceof Player)
|
||||||
nodePermission = AuthMe.getInstance().getPermissionsManager().hasPermission((Player) sender, node);
|
nodePermission = AuthMe.getInstance().getPermissionsManager().hasPermission((Player) sender, node);
|
||||||
final String nodePermsString = ChatColor.GRAY + (nodePermission ? ChatColor.ITALIC + " (Permission!)" : ChatColor.ITALIC + " (No Permission!)");
|
final String nodePermsString = ChatColor.GRAY + (nodePermission ? ChatColor.ITALIC + " (Permission!)" : ChatColor.ITALIC + " (No Permission!)");
|
||||||
sender.sendMessage(" " + ChatColor.YELLOW + ChatColor.ITALIC + node + nodePermsString);
|
sender.sendMessage(" " + ChatColor.YELLOW + ChatColor.ITALIC + node.getNode() + nodePermsString);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Print the default permission
|
// Print the default permission
|
||||||
|
Loading…
Reference in New Issue
Block a user