mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-26 16:04:27 +02:00
Add support for whitelisting commands in /help by permission: essentials.help.<plugin>.<command>
This commit is contained in:
@@ -82,7 +82,7 @@ public class HelpInput implements IText
|
||||
{
|
||||
permissions = value.get(PERMISSIONS);
|
||||
}
|
||||
if (isOnWhitelist)
|
||||
if (isOnWhitelist || user.isAuthorized("essentials.help." + pluginNameLow + "." + k.getKey()))
|
||||
{
|
||||
pluginLines.add(_("helpLine", k.getKey(), value.get(DESCRIPTION)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user