mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-25 20:16:06 +01:00
Added a bunch more short commands
This commit is contained in:
parent
e059a565c7
commit
77a25ad8e6
@ -171,31 +171,32 @@ public class MultiverseCore extends JavaPlugin {
|
|||||||
* Register Multiverse-Core commands to Command Manager.
|
* Register Multiverse-Core commands to Command Manager.
|
||||||
*/
|
*/
|
||||||
private void registerCommands() {
|
private void registerCommands() {
|
||||||
// Page 1
|
// Intro Commands
|
||||||
|
|
||||||
this.commandHandler.registerCommand(new CoordCommand(this));
|
|
||||||
this.commandHandler.registerCommand(new TeleportCommand(this));
|
|
||||||
this.commandHandler.registerCommand(new ListCommand(this));
|
this.commandHandler.registerCommand(new ListCommand(this));
|
||||||
this.commandHandler.registerCommand(new WhoCommand(this));
|
this.commandHandler.registerCommand(new InfoCommand(this));
|
||||||
this.commandHandler.registerCommand(new SetSpawnCommand(this));
|
|
||||||
this.commandHandler.registerCommand(new CreateCommand(this));
|
this.commandHandler.registerCommand(new CreateCommand(this));
|
||||||
this.commandHandler.registerCommand(new ImportCommand(this));
|
this.commandHandler.registerCommand(new ImportCommand(this));
|
||||||
|
this.commandHandler.registerCommand(new ReloadCommand(this));
|
||||||
|
this.commandHandler.registerCommand(new SetSpawnCommand(this));
|
||||||
|
this.commandHandler.registerCommand(new CoordCommand(this));
|
||||||
|
this.commandHandler.registerCommand(new TeleportCommand(this));
|
||||||
|
this.commandHandler.registerCommand(new WhoCommand(this));
|
||||||
this.commandHandler.registerCommand(new SpawnCommand(this));
|
this.commandHandler.registerCommand(new SpawnCommand(this));
|
||||||
|
// Dangerous Commands
|
||||||
this.commandHandler.registerCommand(new RemoveCommand(this));
|
this.commandHandler.registerCommand(new RemoveCommand(this));
|
||||||
this.commandHandler.registerCommand(new DeleteCommand(this));
|
this.commandHandler.registerCommand(new DeleteCommand(this));
|
||||||
this.commandHandler.registerCommand(new UnloadCommand(this));
|
this.commandHandler.registerCommand(new UnloadCommand(this));
|
||||||
this.commandHandler.registerCommand(new ConfirmCommand(this));
|
this.commandHandler.registerCommand(new ConfirmCommand(this));
|
||||||
this.commandHandler.registerCommand(new InfoCommand(this));
|
// Modification commands
|
||||||
this.commandHandler.registerCommand(new ReloadCommand(this));
|
this.commandHandler.registerCommand(new PurgeCommand(this));
|
||||||
|
|
||||||
this.commandHandler.registerCommand(new ModifyAddCommand(this));
|
this.commandHandler.registerCommand(new ModifyAddCommand(this));
|
||||||
this.commandHandler.registerCommand(new ModifySetCommand(this));
|
this.commandHandler.registerCommand(new ModifySetCommand(this));
|
||||||
this.commandHandler.registerCommand(new ModifyRemoveCommand(this));
|
this.commandHandler.registerCommand(new ModifyRemoveCommand(this));
|
||||||
this.commandHandler.registerCommand(new ModifyClearCommand(this));
|
this.commandHandler.registerCommand(new ModifyClearCommand(this));
|
||||||
// This modify MUST go last.
|
// This modify MUST go last.
|
||||||
this.commandHandler.registerCommand(new ModifyCommand(this));
|
this.commandHandler.registerCommand(new ModifyCommand(this));
|
||||||
|
// Misc Commands
|
||||||
this.commandHandler.registerCommand(new EnvironmentCommand(this));
|
this.commandHandler.registerCommand(new EnvironmentCommand(this));
|
||||||
this.commandHandler.registerCommand(new PurgeCommand(this));
|
|
||||||
this.commandHandler.registerCommand(new SleepCommand(this));
|
this.commandHandler.registerCommand(new SleepCommand(this));
|
||||||
this.commandHandler.registerCommand(new HelpCommand(this));
|
this.commandHandler.registerCommand(new HelpCommand(this));
|
||||||
}
|
}
|
||||||
|
@ -17,10 +17,12 @@ public class InfoCommand extends Command {
|
|||||||
super(plugin);
|
super(plugin);
|
||||||
this.commandName = "World Information";
|
this.commandName = "World Information";
|
||||||
this.commandDesc = "Returns detailed information on the world.";
|
this.commandDesc = "Returns detailed information on the world.";
|
||||||
this.commandUsage = "/mvinfo" + ChatColor.GOLD + " [WORLD] " + ChatColor.DARK_PURPLE + " <Page #>";
|
this.commandUsage = "/mvinfo" + ChatColor.GOLD + " [WORLD] ";
|
||||||
this.minimumArgLength = 0;
|
this.minimumArgLength = 0;
|
||||||
this.maximumArgLength = 2;
|
this.maximumArgLength = 2;
|
||||||
this.commandKeys.add("mvinfo");
|
this.commandKeys.add("mvinfo");
|
||||||
|
this.commandKeys.add("mv info");
|
||||||
|
this.commandKeys.add("mvi");
|
||||||
this.permission = "multiverse.world.info";
|
this.permission = "multiverse.world.info";
|
||||||
this.opRequired = false;
|
this.opRequired = false;
|
||||||
}
|
}
|
||||||
|
@ -12,12 +12,24 @@ commands:
|
|||||||
/<command> <world> <environment>
|
/<command> <world> <environment>
|
||||||
/<command> creative normal -- Creates a world called 'creative' with a NORMAL environment.
|
/<command> creative normal -- Creates a world called 'creative' with a NORMAL environment.
|
||||||
/<command> hellworld nether -- Creates a world called 'hellworld' with a NETHER environment.
|
/<command> hellworld nether -- Creates a world called 'hellworld' with a NETHER environment.
|
||||||
|
mvc:
|
||||||
|
description: World create command
|
||||||
|
usage: |
|
||||||
|
/<command> <world> <environment>
|
||||||
|
/<command> creative normal -- Creates a world called 'creative' with a NORMAL environment.
|
||||||
|
/<command> hellworld nether -- Creates a world called 'hellworld' with a NETHER environment.
|
||||||
mvimport:
|
mvimport:
|
||||||
description: World import command
|
description: World import command
|
||||||
usage: |
|
usage: |
|
||||||
/<command> <world> <environment>
|
/<command> <world> <environment>
|
||||||
/<command> creative normal -- Imports an existing world called 'creative' with a NORMAL environment.
|
/<command> creative normal -- Imports an existing world called 'creative' with a NORMAL environment.
|
||||||
/<command> hellworld nether -- Imports an existing world called 'hellworld' with a NETHER environment.
|
/<command> hellworld nether -- Imports an existing world called 'hellworld' with a NETHER environment.
|
||||||
|
mvim:
|
||||||
|
description: World import command
|
||||||
|
usage: |
|
||||||
|
/<command> <world> <environment>
|
||||||
|
/<command> creative normal -- Imports an existing world called 'creative' with a NORMAL environment.
|
||||||
|
/<command> hellworld nether -- Imports an existing world called 'hellworld' with a NETHER environment.
|
||||||
mvremove:
|
mvremove:
|
||||||
description: World remove command
|
description: World remove command
|
||||||
usage: |
|
usage: |
|
||||||
@ -35,6 +47,11 @@ commands:
|
|||||||
usage: |
|
usage: |
|
||||||
/<command> <world> <option>:<value>
|
/<command> <world> <option>:<value>
|
||||||
/<command> creative pvp:false -- Turns off PVP in the 'creative' world.
|
/<command> creative pvp:false -- Turns off PVP in the 'creative' world.
|
||||||
|
mvm:
|
||||||
|
description: Modify the settings of an existing world
|
||||||
|
usage: |
|
||||||
|
/<command> <world> <option>:<value>
|
||||||
|
/<command> creative pvp:false -- Turns off PVP in the 'creative' world.
|
||||||
mvtp:
|
mvtp:
|
||||||
description: Command to teleport between Worlds
|
description: Command to teleport between Worlds
|
||||||
usage: |
|
usage: |
|
||||||
@ -47,24 +64,48 @@ commands:
|
|||||||
/<command> [environment]
|
/<command> [environment]
|
||||||
Example: /<command> NETHER - Shows all NETHER Worlds.
|
Example: /<command> NETHER - Shows all NETHER Worlds.
|
||||||
Example: /<command> NORMAL - Shows all NORMAL Worlds.
|
Example: /<command> NORMAL - Shows all NORMAL Worlds.
|
||||||
|
mvl:
|
||||||
|
description: Print list of loaded Worlds
|
||||||
|
usage: |
|
||||||
|
/<command> [environment]
|
||||||
|
Example: /<command> NETHER - Shows all NETHER Worlds.
|
||||||
|
Example: /<command> NORMAL - Shows all NORMAL Worlds.
|
||||||
mvsetspawn:
|
mvsetspawn:
|
||||||
description: Set the spawn area for a particular world
|
description: Set the spawn area for a particular world
|
||||||
usage: /<command> -- Sets the spawn area of the current world to your location.
|
usage: /<command> -- Sets the spawn area of the current world to your location.
|
||||||
|
mvss:
|
||||||
|
description: Set the spawn area for a particular world
|
||||||
|
usage: /<command> -- Sets the spawn area of the current world to your location.
|
||||||
mvspawn:
|
mvspawn:
|
||||||
description: Teleport to the spawn area
|
description: Teleport to the spawn area
|
||||||
usage: /<command> -- Teleports you to the spawn area of your current world.
|
usage: /<command> -- Teleports you to the spawn area of your current world.
|
||||||
|
mvs:
|
||||||
|
description: Teleport to the spawn area
|
||||||
|
usage: /<command> -- Teleports you to the spawn area of your current world.
|
||||||
mvcoord:
|
mvcoord:
|
||||||
description: Display World, Coordinates, Direction & Compression for a world.
|
description: Display World, Coordinates, Direction & Compression for a world.
|
||||||
usage: |
|
usage: |
|
||||||
/<command> [world]
|
/<command> [world]
|
||||||
/<command> -- Shows the relevant coordinates in your current world.
|
/<command> -- Shows the relevant coordinates in your current world.
|
||||||
/<command> creative -- Shows the relevant coordinates if you were in the 'creative' world.
|
/<command> creative -- Shows the relevant coordinates if you were in the 'creative' world.
|
||||||
|
mvc:
|
||||||
|
description: Display World, Coordinates, Direction & Compression for a world.
|
||||||
|
usage: |
|
||||||
|
/<command> [world]
|
||||||
|
/<command> -- Shows the relevant coordinates in your current world.
|
||||||
|
/<command> creative -- Shows the relevant coordinates if you were in the 'creative' world.
|
||||||
mvwho:
|
mvwho:
|
||||||
description: Display online users per world.
|
description: Display online users per world.
|
||||||
usage: |
|
usage: |
|
||||||
/<command> [world]
|
/<command> [world]
|
||||||
/<command> -- Shows who is online in each world.
|
/<command> -- Shows who is online in each world.
|
||||||
/<command> creative -- Shows who is online in the 'creative' world.
|
/<command> creative -- Shows who is online in the 'creative' world.
|
||||||
|
mvw:
|
||||||
|
description: Display online users per world.
|
||||||
|
usage: |
|
||||||
|
/<command> [world]
|
||||||
|
/<command> -- Shows who is online in each world.
|
||||||
|
/<command> creative -- Shows who is online in the 'creative' world.
|
||||||
mvreload:
|
mvreload:
|
||||||
description: Reload Configuration files.
|
description: Reload Configuration files.
|
||||||
usage: /<command>
|
usage: /<command>
|
||||||
@ -83,6 +124,10 @@ commands:
|
|||||||
description: Gets world info.
|
description: Gets world info.
|
||||||
usage: |
|
usage: |
|
||||||
/<command> [world]
|
/<command> [world]
|
||||||
|
mvi:
|
||||||
|
description: Gets world info.
|
||||||
|
usage: |
|
||||||
|
/<command> [world]
|
||||||
mvenv:
|
mvenv:
|
||||||
description: Tells the user all possible world types.
|
description: Tells the user all possible world types.
|
||||||
usage: |
|
usage: |
|
||||||
|
Loading…
Reference in New Issue
Block a user