mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 12:33:03 +00:00
Merge pull request #11 from khobbits/patch-1
Add support for permissions: in plugin.yml files
This commit is contained in:
commit
8245adfd08
1 changed files with 7 additions and 0 deletions
|
@ -139,6 +139,13 @@ public class Commandhelp extends EssentialsCommand
|
||||||
retval.add("§c" + k.getKey() + "§7: " + value.get("description"));
|
retval.add("§c" + k.getKey() + "§7: " + value.get("description"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (value.containsKey("permissions") && value.get("permissions") != null && !(value.get("permissions").equals("")))
|
||||||
|
{
|
||||||
|
if (user.isAuthorized(value.get("permissions")))
|
||||||
|
{
|
||||||
|
retval.add("§c" + k.getKey() + "§7: " + value.get("description"));
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!ess.getSettings().hidePermissionlessHelp())
|
if (!ess.getSettings().hidePermissionlessHelp())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue