Removed some unused code
This commit is contained in:
parent
443e9954af
commit
b4d710840d
@ -53,77 +53,6 @@ public class CommandManager {
|
|||||||
helpCommand.addArgument(new CommandArgumentDescription("query", "The command or query to view help for.", true));
|
helpCommand.addArgument(new CommandArgumentDescription("query", "The command or query to view help for.", true));
|
||||||
helpCommand.setMaximumArguments(false);
|
helpCommand.setMaximumArguments(false);
|
||||||
|
|
||||||
/*// Register the create command
|
|
||||||
CommandDescription createWorldCommand = new CommandDescription(
|
|
||||||
new CreateWorldCommand(),
|
|
||||||
new ArrayList<String>() {{
|
|
||||||
add("createworld");
|
|
||||||
add("cw");
|
|
||||||
}},
|
|
||||||
"Create world",
|
|
||||||
"Create a new Dungeon Maze world, the name of the world must be unique.",
|
|
||||||
dungeonMazeCommand);
|
|
||||||
createWorldCommand.addArgument(new CommandArgumentDescription("world", "The name of the world to create.", false));
|
|
||||||
createWorldCommand.addArgument(new CommandArgumentDescription("preload", "True or False to preload the world on startup.", true));
|
|
||||||
createWorldCommand.setCommandPermissions("dungeonmaze.command.createworld", CommandPermissions.DefaultPermission.OP_ONLY);
|
|
||||||
|
|
||||||
// Register the teleport command
|
|
||||||
CommandDescription teleportCommand = new CommandDescription(
|
|
||||||
new TeleportCommand(),
|
|
||||||
new ArrayList<String>() {{
|
|
||||||
add("teleport");
|
|
||||||
add("tp");
|
|
||||||
add("warp");
|
|
||||||
add("goto");
|
|
||||||
add("move");
|
|
||||||
}},
|
|
||||||
"Teleport to world",
|
|
||||||
"Teleports to any another world, such as a Dungeon Maze world." ,
|
|
||||||
dungeonMazeCommand);
|
|
||||||
teleportCommand.addArgument(new CommandArgumentDescription("world", "The name of the world to teleport to.", false));
|
|
||||||
teleportCommand.setCommandPermissions("dungeonmaze.command.teleport", CommandPermissions.DefaultPermission.OP_ONLY);
|
|
||||||
|
|
||||||
// Register the load world command
|
|
||||||
CommandDescription loadWorldCommand = new CommandDescription(
|
|
||||||
new LoadWorldCommand(),
|
|
||||||
new ArrayList<String>() {{
|
|
||||||
add("loadworld");
|
|
||||||
add("load");
|
|
||||||
}},
|
|
||||||
"Load a world",
|
|
||||||
"Load a world if it isn't loaded." ,
|
|
||||||
dungeonMazeCommand);
|
|
||||||
loadWorldCommand.addArgument(new CommandArgumentDescription("world", "The name of the world to load.", false));
|
|
||||||
loadWorldCommand.setCommandPermissions("dungeonmaze.command.loadworld", CommandPermissions.DefaultPermission.OP_ONLY);
|
|
||||||
|
|
||||||
// Register the unload world command
|
|
||||||
CommandDescription unloadWorldCommand = new CommandDescription(
|
|
||||||
new UnloadWorldCommand(),
|
|
||||||
new ArrayList<String>() {{
|
|
||||||
add("unloadworld");
|
|
||||||
add("unload");
|
|
||||||
}},
|
|
||||||
"Unload a world",
|
|
||||||
"Unload a loaded world." ,
|
|
||||||
dungeonMazeCommand);
|
|
||||||
unloadWorldCommand.addArgument(new CommandArgumentDescription("world", "The name of the world to unload.", false));
|
|
||||||
unloadWorldCommand.setCommandPermissions("dungeonmaze.command.unloadworld", CommandPermissions.DefaultPermission.OP_ONLY);
|
|
||||||
|
|
||||||
// Register the list world command
|
|
||||||
CommandDescription listWorldCommand = new CommandDescription(
|
|
||||||
new ListWorldCommand(),
|
|
||||||
new ArrayList<String>() {{
|
|
||||||
add("listworlds");
|
|
||||||
add("listworld");
|
|
||||||
add("list");
|
|
||||||
add("worlds");
|
|
||||||
add("lw");
|
|
||||||
}},
|
|
||||||
"List Dungeon Mazes",
|
|
||||||
"Lists the available Dungeon Maze worlds and shows some additional information.",
|
|
||||||
dungeonMazeCommand);
|
|
||||||
listWorldCommand.setCommandPermissions("dungeonmaze.command.listworlds", CommandPermissions.DefaultPermission.OP_ONLY);*/
|
|
||||||
|
|
||||||
// Register the register command
|
// Register the register command
|
||||||
CommandDescription registerCommand = new CommandDescription(
|
CommandDescription registerCommand = new CommandDescription(
|
||||||
new RegisterCommand(),
|
new RegisterCommand(),
|
||||||
@ -370,91 +299,6 @@ public class CommandManager {
|
|||||||
authMeCommand);
|
authMeCommand);
|
||||||
reloadCommand.setCommandPermissions("authme.admin.reload", CommandPermissions.DefaultPermission.OP_ONLY);
|
reloadCommand.setCommandPermissions("authme.admin.reload", CommandPermissions.DefaultPermission.OP_ONLY);
|
||||||
|
|
||||||
/* // Register the reload permissions command
|
|
||||||
CommandDescription reloadPermissionsCommand = new CommandDescription(
|
|
||||||
new ReloadPermissionsCommand(),
|
|
||||||
new ArrayList<String>() {{
|
|
||||||
add("reloadpermissions");
|
|
||||||
add("reloadpermission");
|
|
||||||
add("reloadperms");
|
|
||||||
add("rp");
|
|
||||||
}},
|
|
||||||
"Reload permissions",
|
|
||||||
"Reload the permissions system and rehook the installed permissions system.",
|
|
||||||
dungeonMazeCommand);
|
|
||||||
reloadPermissionsCommand.setCommandPermissions("dungeonmaze.command.reloadpermissions", CommandPermissions.DefaultPermission.OP_ONLY);
|
|
||||||
|
|
||||||
// Register the restart command
|
|
||||||
CommandDescription restartCommand = new CommandDescription(
|
|
||||||
new RestartCommand(),
|
|
||||||
new ArrayList<String>() {{
|
|
||||||
add("restart");
|
|
||||||
add("rstrt");
|
|
||||||
}},
|
|
||||||
"Restart Dungeon Maze",
|
|
||||||
"Restart the Dungeon Maze plugin.",
|
|
||||||
dungeonMazeCommand);
|
|
||||||
restartCommand.setCommandPermissions("dungeonmaze.command.restart", CommandPermissions.DefaultPermission.OP_ONLY);
|
|
||||||
restartCommand.addArgument(new CommandArgumentDescription("force", "True or False to force restart.", true));
|
|
||||||
|
|
||||||
// Register the check updates command
|
|
||||||
CommandDescription checkUpdatesCommand = new CommandDescription(
|
|
||||||
new CheckUpdatesCommand(),
|
|
||||||
new ArrayList<String>() {{
|
|
||||||
add("checkupdates");
|
|
||||||
add("checkupdate");
|
|
||||||
add("check");
|
|
||||||
add("updates");
|
|
||||||
add("update");
|
|
||||||
add("cu");
|
|
||||||
}},
|
|
||||||
"Check updates",
|
|
||||||
"Check for available updates to install.",
|
|
||||||
dungeonMazeCommand);
|
|
||||||
checkUpdatesCommand.setCommandPermissions("dungeonmaze.command.checkupdates", CommandPermissions.DefaultPermission.OP_ONLY);
|
|
||||||
|
|
||||||
// Register the install update command
|
|
||||||
CommandDescription installUpdateCommand = new CommandDescription(
|
|
||||||
new InstallUpdateCommand(),
|
|
||||||
new ArrayList<String>() {{
|
|
||||||
add("installupdates");
|
|
||||||
add("installupdate");
|
|
||||||
add("install");
|
|
||||||
add("iu");
|
|
||||||
}},
|
|
||||||
"Install update",
|
|
||||||
"Try to install any availble update.",
|
|
||||||
dungeonMazeCommand);
|
|
||||||
installUpdateCommand.setCommandPermissions("dungeonmaze.command.installupdate", CommandPermissions.DefaultPermission.OP_ONLY);
|
|
||||||
|
|
||||||
// Register the status command
|
|
||||||
CommandDescription statusCommand = new CommandDescription(
|
|
||||||
new StatusCommand(),
|
|
||||||
new ArrayList<String>() {{
|
|
||||||
add("status");
|
|
||||||
add("stats");
|
|
||||||
add("s");
|
|
||||||
}},
|
|
||||||
"Status info",
|
|
||||||
"Show detailed plugin status.",
|
|
||||||
dungeonMazeCommand);
|
|
||||||
statusCommand.setMaximumArguments(false);
|
|
||||||
statusCommand.setCommandPermissions("dungeonmaze.command.status", CommandPermissions.DefaultPermission.OP_ONLY);
|
|
||||||
|
|
||||||
// Register the status command
|
|
||||||
CommandDescription serviceCommand = new CommandDescription(
|
|
||||||
new ServiceCommand(),
|
|
||||||
new ArrayList<String>() {{
|
|
||||||
add("services");
|
|
||||||
add("service");
|
|
||||||
add("serv");
|
|
||||||
}},
|
|
||||||
"Services command",
|
|
||||||
"Show detailed information about all the Dungeon Maze serivces.",
|
|
||||||
dungeonMazeCommand);
|
|
||||||
serviceCommand.setMaximumArguments(false);
|
|
||||||
serviceCommand.setCommandPermissions("dungeonmaze.command.services", CommandPermissions.DefaultPermission.OP_ONLY);*/
|
|
||||||
|
|
||||||
// Register the version command
|
// Register the version command
|
||||||
CommandDescription versionCommand = new CommandDescription(
|
CommandDescription versionCommand = new CommandDescription(
|
||||||
new VersionCommand(),
|
new VersionCommand(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user