Merge pull request #2420 from benwoo1110/plugin.yml-update

Updated plugin.yml commands and some missing alias
This commit is contained in:
Jeremy Wood 2020-10-05 01:34:31 -04:00 committed by GitHub
commit c1a3d48944
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 68 additions and 115 deletions

View File

@ -26,7 +26,7 @@ public class ListCommand extends PaginatedCoreCommand<String> {
public ListCommand(MultiverseCore plugin) { public ListCommand(MultiverseCore plugin) {
super(plugin); super(plugin);
this.setName("World Listing"); this.setName("World Listing");
this.setCommandUsage("/mv list"); this.setCommandUsage("/mv list [page]");
this.setArgRange(0, 2); this.setArgRange(0, 2);
this.addKey("mvlist"); this.addKey("mvlist");
this.addKey("mvl"); this.addKey("mvl");

View File

@ -27,6 +27,7 @@ public class ReloadCommand extends MultiverseCommand {
this.setCommandUsage("/mv reload"); this.setCommandUsage("/mv reload");
this.setArgRange(0, 0); this.setArgRange(0, 0);
this.addKey("mvreload"); this.addKey("mvreload");
this.addKey("mvr");
this.addKey("mv reload"); this.addKey("mv reload");
this.addCommandExample("/mv reload"); this.addCommandExample("/mv reload");
this.setPermission("multiverse.core.reload", "Reloads worlds.yml and config.yml.", PermissionDefault.OP); this.setPermission("multiverse.core.reload", "Reloads worlds.yml and config.yml.", PermissionDefault.OP);

View File

@ -30,6 +30,7 @@ public class SetSpawnCommand extends MultiverseCommand {
this.setCommandUsage("/mv setspawn"); this.setCommandUsage("/mv setspawn");
this.setArgRange(0, 6); this.setArgRange(0, 6);
this.addKey("mvsetspawn"); this.addKey("mvsetspawn");
this.addKey("mvsets");
this.addKey("mvss"); this.addKey("mvss");
this.addKey("mv set spawn"); this.addKey("mv set spawn");
this.addKey("mv setspawn"); this.addKey("mv setspawn");

View File

@ -40,7 +40,7 @@ public class TeleportCommand extends MultiverseCommand {
Permission menu = new Permission("multiverse.teleport.*", "Allows you to display the teleport menu.", PermissionDefault.OP); Permission menu = new Permission("multiverse.teleport.*", "Allows you to display the teleport menu.", PermissionDefault.OP);
this.setName("Teleport"); this.setName("Teleport");
this.setCommandUsage("/mv tp " + ChatColor.GOLD + "[PLAYER]" + ChatColor.GREEN + " {WORLD}"); this.setCommandUsage("/mv tp " + ChatColor.GOLD + "[PLAYER]" + ChatColor.GREEN + " {DESTINATION}");
this.setArgRange(1, 2); this.setArgRange(1, 2);
this.addKey("mvtp"); this.addKey("mvtp");
this.addKey("mv tp"); this.addKey("mv tp");

View File

@ -44,9 +44,10 @@ public class VersionCommand extends MultiverseCommand {
public VersionCommand(MultiverseCore plugin) { public VersionCommand(MultiverseCore plugin) {
super(plugin); super(plugin);
this.setName("Multiverse Version"); this.setName("Multiverse Version");
this.setCommandUsage("/mv version " + ChatColor.GOLD + "-[bhp] [--include-plugin-list]"); this.setCommandUsage("/mv version " + ChatColor.GOLD + "[-b|-h|-p] [--include-plugin-list]");
this.setArgRange(0, 2); this.setArgRange(0, 2);
this.addKey("mv version"); this.addKey("mv version");
this.addKey("mvver");
this.addKey("mvv"); this.addKey("mvv");
this.addKey("mvversion"); this.addKey("mvversion");
this.setPermission("multiverse.core.version", this.setPermission("multiverse.core.version",

View File

@ -11,34 +11,24 @@ commands:
usage: /<command> usage: /<command>
mvcreate: mvcreate:
description: World create command description: World create command
usage: | aliases: [mvc]
/<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.
mvc:
description: World create command
usage: | usage: |
/<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.
mvimport: mvimport:
description: World import command description: World import command
aliases: [mvim]
usage: | usage: |
/<command> <world> <environment> /<command> <world> <environment> [-g generator[:id]] [-n]
/<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.
mvim:
description: World import command
usage: |
/<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.
mvremove: mvremove:
description: World remove command description: Remove world from multiverse command
usage: | usage: |
/<command> <world> /<command> <world>
mvdelete: mvdelete:
description: World delete command description: Delete world from server folders command
usage: | usage: |
/<command> <world> /<command> <world>
mvunload: mvunload:
@ -47,103 +37,75 @@ commands:
/<command> <world> /<command> <world>
mvmodify: mvmodify:
description: Modify the settings of an existing world description: Modify the settings of an existing world
aliases: [mvm]
usage: | usage: |
/<command> <world> <option>:<value> /<command> <set|add|remove|clear> <value> <property> [world]
/<command> creative pvp:false -- Turns off PVP in the 'creative' world. /<command> set pvp false creative -- Turns off PVP in the 'creative' world.
mvmset: mvmset:
description: Modify the settings of an existing world description: Modify the settings of an existing world
usage: | usage: |
/<command> <world> <option>:<value> /<command> <value> <property> [world]
/<command> creative pvp:false -- Turns off PVP in the 'creative' world. /<command> pvp false creative -- Turns off PVP in the 'creative' world.
mvmadd: mvmadd:
description: Modify the settings of an existing world description: Modify the settings of an existing world
usage: | usage: |
/<command> <world> <option>:<value> /<command> <value> <property> [world]
/<command> creative pvp:false -- Turns off PVP in the 'creative' world. /<command> sheep animals world_nether -- Add sheep to animal list for 'world_nether' world.
mvmremove: mvmremove:
description: Modify the settings of an existing world description: Modify the settings of an existing world
aliases: [mvmdelete]
usage: | usage: |
/<command> <world> <option>:<value> /<command> <value> <property> [world]
/<command> creative pvp:false -- Turns off PVP in the 'creative' world. /<command> sheep animals world_nether -- remove sheep from animal list for 'world_nether' world.
mvmclear: mvmclear:
description: Modify the settings of an existing world description: Modify the settings of an existing world
usage: | usage: |
/<command> <world> <option>:<value> /<command> <property> [world]
/<command> creative pvp:false -- Turns off PVP in the 'creative' world. /<command> animals world_nether -- Empties animal list for 'world_nether' 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: |
/<command> <world>[:spawn] /<command> [player] <destination>
Example: /<command> creative - Teleports you to the relevant location in the 'creative' world. Example: /<command> creative - Teleports you to the relevant location in the 'creative' world.
Example: /<command> creative:spawn - Teleports you to the spawn of the 'creative' world.
mvlist: mvlist:
description: Print list of loaded Worlds description: Print list of loaded Worlds
aliases: [mvl]
usage: | usage: |
/<command> [environment] /<command> [page]
Example: /<command> NETHER - Shows all NETHER 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> NETHER - Shows all NETHER Worlds.
Example: /<command> NORMAL - Shows all NORMAL 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. aliases: [mvsets, mvss]
mvset:
description: Set the spawn area for a particular world
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. 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. aliases: [mvs]
mvs: usage: /<command> [player] -- Teleports you to the spawn area of your current world.
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: | aliases: [mvco]
/<command> [world]
/<command> -- Shows the relevant coordinates in your current 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: | 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.
mvwho: mvwho:
description: Display online users per world. description: Display online users per world.
aliases: [mvw]
usage: | usage: |
/<command> [world] /<command> [world|--all]
/<command> -- Shows who is online in each 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> -- 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.
mvreload: mvreload:
description: Reload Configuration files. description: Reload Configuration files.
usage: /<command> aliases: [mvr]
mvr:
description: Reload Configuration files.
usage: /<command> usage: /<command>
mvpurge: mvpurge:
description: Purge the targetted world of creatures. description: Purge the targetted world of creatures.
usage: | usage: |
/<command> [world] [creatures] /<command> [WORLD|all] [all|animals|monsters|MOBNAME]
/<command> -- Purges the players world of all creatures. /<command> -- Purges the players world of all creatures.
/<command> creative * -- Purges the creative world of all Creatures. /<command> creative all -- Purges the creative world of all Creatures.
/<command> creative creeper -- Purges the creative world of all CREEPERS. /<command> creative creeper -- Purges the creative world of all CREEPERS.
mvconfirm: mvconfirm:
description: Confirms sensitive decisions like deleting a world. description: Confirms sensitive decisions like deleting a world.
@ -151,87 +113,75 @@ commands:
/<command> /<command>
mvinfo: mvinfo:
description: Gets world info. description: Gets world info.
aliases: [mvi]
usage: | usage: |
/<command> [world] /<command> [world] [page]
mvi:
description: Gets world info.
usage: |
/<command> [world]
mvenv: mvenv:
description: Tells the user all possible environment types. description: Tells the user all possible environment types.
usage: | usage: |
/<command> /<command>
mvv:
description: Prints out version info.
usage: |
/<command>
mvversion: mvversion:
description: Prints out version info. description: Prints out version info.
aliases: [mvv, mvver]
usage: | usage: |
/<command> /<command> [-b|-h|-p] [--include-plugin-list]
mvco:
description: Displays the player's coordinates.
usage: |
/<command>
mvh:
description: Displays the Multiverse Help.
usage: |
/<command>
mvsearch:
description: Displays the Multiverse Help.
usage: |
/<command>
mvhelp: mvhelp:
description: Displays the Multiverse Help. description: Displays the Multiverse Help.
aliases: [mvsearch, mvh]
usage: | usage: |
/<command> /<command> [filter] [page #]
mvdebug: mvdebug:
description: Turns on debugging. description: Turns on debugging.
usage: | usage: |
/<command> /<command> [1|2|3|off|silent]
mvgenerators: mvgenerators:
description: Displays all found world generators. description: Displays all found world generators.
usage: | aliases: [mvgens]
/<command>
mvgens:
description: Displays all found world generators.
usage: | usage: |
/<command> /<command>
mvload: mvload:
description: Loads a world into Multiverse. description: Loads a world into Multiverse.
usage: | usage: |
/<command> {WORLD} /<command> <world>
mvregen: mvregen:
description: Regenerates a world Multiverse already knows about. description: Regenerates a world Multiverse already knows about.
usage: | usage: |
/<command> {WORLD} /<command> <world> [-s seed]
mvscript: mvscript:
description: Runs a script from the Multiverse scripts directory. description: Runs a script from the Multiverse scripts directory.
usage: | usage: |
/<command> {script} [target] /<command> <script> [target]
mvclone: mvclone:
description: World clone command description: World clone command
aliases: [mvcl]
usage: | usage: |
/<command> <world> <environment> /<command> <world> <environment> [-g generator[:id]]
/<command> creative grieftastic -- Creates a world called 'grieftastic' exactly identical to the world 'creative'. /<command> creative grieftastic -- Creates a world called 'grieftastic' exactly identical to the world 'creative'.
mvsilent: mvsilent:
description: Reduces startup messages description: Reduces startup messages
usage: | usage: |
/<command> [true|false] /<command> [true|false]
mvgamerule: mvgamerule:
description: Sets a gamerule. description: Sets a gamerule.
aliases: [mvrule]
usage: | usage: |
/<command> {RULE} {VALUE} [WORLD] /<command> <rule> <value> [world]
mvrule:
description: Sets a gamerule.
usage: |
/<command> {RULE} {VALUE} [WORLD]
mvgamerules: mvgamerules:
description: Lists the gamerules. description: Lists the gamerules
aliases: [mvrules]
usage: | usage: |
/<command> [WORLD] /<command> [world]
mvrules: mvanchors:
description: Lists the gamerules. description: Creating and removing Anchors command
aliases: [mvanchor]
usage: | usage: |
/<command> [WORLD] /<command> <name> [-d]
mvcheck:
description: Validate your multiverse settings command
usage: |
/<command> <name> <destination>
mvconfig:
description: Configuration command
aliases: [mvconf]
usage: |
/<command> <property> <value>