[Bleeding] Added support for amending help topic visibility permissions in help.yml. Addresses BUKKIT-1113
By: rmichela <deltahat@gmail.com>
This commit is contained in:
@@ -70,6 +70,10 @@ public class GenericCommandHelpTopic extends HelpTopic {
|
||||
return true;
|
||||
}
|
||||
|
||||
return command.testPermissionSilent(sender);
|
||||
if (amendedPermission != null) {
|
||||
return sender.hasPermission(amendedPermission);
|
||||
} else {
|
||||
return command.testPermissionSilent(sender);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user