mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-03-07 17:28:03 +08:00
Disambiguated ManageCommand setNodeGroups call
This commit is contained in:
parent
ac5095153e
commit
0393bcef61
@ -49,10 +49,6 @@ public class PlanBungeeCommand extends TreeCmdNode {
|
||||
new StatusCommand<>(plugin, Permissions.MANAGE.getPermission(), plugin.getColorScheme()),
|
||||
// (Settings.ALLOW_UPDATE.isTrue() ? new UpdateCommand() : null)
|
||||
};
|
||||
setNodeGroups(
|
||||
analyticsGroup,
|
||||
webGroup,
|
||||
manageGroup
|
||||
);
|
||||
setNodeGroups(analyticsGroup, webGroup, manageGroup);
|
||||
}
|
||||
}
|
||||
|
@ -26,22 +26,21 @@ public class ManageCommand extends TreeCmdNode {
|
||||
setShortHelp(locale.getString(CmdHelpLang.MANAGE));
|
||||
setInDepthHelp(locale.getArray(DeepHelpLang.MANAGE));
|
||||
super.setColorScheme(plugin.getColorScheme());
|
||||
setNodeGroups(
|
||||
new CommandNode[]{
|
||||
new ManageRawDataCommand(plugin),
|
||||
new ManageMoveCommand(plugin),
|
||||
new ManageBackupCommand(plugin),
|
||||
new ManageRestoreCommand(plugin),
|
||||
new ManageRemoveCommand(plugin),
|
||||
new ManageHotSwapCommand(plugin),
|
||||
new ManageClearCommand(plugin),
|
||||
},
|
||||
new CommandNode[]{
|
||||
new ManageSetupCommand(plugin),
|
||||
new ManageConDebugCommand(plugin),
|
||||
new ManageImportCommand(plugin),
|
||||
new ManageDisableCommand(plugin)
|
||||
}
|
||||
);
|
||||
CommandNode[] databaseGroup = {
|
||||
new ManageRawDataCommand(plugin),
|
||||
new ManageMoveCommand(plugin),
|
||||
new ManageBackupCommand(plugin),
|
||||
new ManageRestoreCommand(plugin),
|
||||
new ManageRemoveCommand(plugin),
|
||||
new ManageHotSwapCommand(plugin),
|
||||
new ManageClearCommand(plugin),
|
||||
};
|
||||
CommandNode[] pluginGroup = {
|
||||
new ManageSetupCommand(plugin),
|
||||
new ManageConDebugCommand(plugin),
|
||||
new ManageImportCommand(plugin),
|
||||
new ManageDisableCommand(plugin)
|
||||
};
|
||||
setNodeGroups(databaseGroup, pluginGroup);
|
||||
}
|
||||
}
|
||||
|
@ -29,14 +29,13 @@ public class WebUserCommand extends TreeCmdNode {
|
||||
|
||||
setShortHelp(locale.getString(CmdHelpLang.WEB));
|
||||
setInDepthHelp(locale.getArray(DeepHelpLang.WEB));
|
||||
setNodeGroups(
|
||||
new CommandNode[]{
|
||||
register,
|
||||
new WebLevelCommand(plugin),
|
||||
new WebListUsersCommand(plugin),
|
||||
new WebCheckCommand(plugin),
|
||||
new WebDeleteCommand(plugin)
|
||||
}
|
||||
);
|
||||
CommandNode[] webGroup = {
|
||||
register,
|
||||
new WebLevelCommand(plugin),
|
||||
new WebListUsersCommand(plugin),
|
||||
new WebCheckCommand(plugin),
|
||||
new WebDeleteCommand(plugin)
|
||||
};
|
||||
setNodeGroups(webGroup);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user