mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-07 04:53:11 +00:00
Add support for whitelisting commands in /help by permission: essentials.help.<plugin>.<command>
This commit is contained in:
parent
1218a0b217
commit
cf0e36c973
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ public class HelpInput implements IText
|
||||||
{
|
{
|
||||||
permissions = value.get(PERMISSIONS);
|
permissions = value.get(PERMISSIONS);
|
||||||
}
|
}
|
||||||
if (isOnWhitelist)
|
if (isOnWhitelist || user.isAuthorized("essentials.help." + pluginNameLow + "." + k.getKey()))
|
||||||
{
|
{
|
||||||
pluginLines.add(_("helpLine", k.getKey(), value.get(DESCRIPTION)));
|
pluginLines.add(_("helpLine", k.getKey(), value.get(DESCRIPTION)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue