mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
[Bleeding] Added option to completely disable all automatic help topic generation by adding "All" to the ignore-plugins list in help.yml. Addresses BUKKIT-1264
This commit is contained in:
1 parent
31b1bc02ca
commit
eb3c092ef8
3 files changed
+22
-9
No files matched your search
@@ -90,6 +90,11 @@ public class SimpleHelpMap implements HelpMap {
|
||||
public synchronized void initializeCommands() {
|
||||
// ** Load topics from highest to lowest priority order **
|
||||
Set<String> ignoredPlugins = new HashSet<String>(yaml.getIgnoredPlugins());
|
||||
|
||||
// Don't load any automatic help topics if All is ignored
|
||||
if (ignoredPlugins.contains("All")) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Initialize help topics from the server's command map
|
||||
outer: for (Command command : server.getCommandMap().getCommands()) {
|
||||
|
||||
Reference in new issue
Block a user