From 34a0ab2e67f461da81eefb835c20d54552312ffc Mon Sep 17 00:00:00 2001 From: Eric Stokes Date: Tue, 2 Aug 2011 19:13:23 -0600 Subject: [PATCH] Add some examples to create, upgrade CH --- lib/commandhandler | 2 +- .../onarandombox/MultiverseCore/commands/CreateCommand.java | 5 +++++ .../onarandombox/MultiverseCore/commands/HelpCommand.java | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/commandhandler b/lib/commandhandler index f5cd7a8c..882ba77a 160000 --- a/lib/commandhandler +++ b/lib/commandhandler @@ -1 +1 @@ -Subproject commit f5cd7a8ce50c5e10fd92e28bd4ae755ff5695ddd +Subproject commit 882ba77aa122413ebaeb70df96afe10e2845f76f diff --git a/src/main/java/com/onarandombox/MultiverseCore/commands/CreateCommand.java b/src/main/java/com/onarandombox/MultiverseCore/commands/CreateCommand.java index 6c10b2b0..517b9e35 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/commands/CreateCommand.java +++ b/src/main/java/com/onarandombox/MultiverseCore/commands/CreateCommand.java @@ -22,6 +22,11 @@ public class CreateCommand extends MultiverseCommand { this.addKey("mvc"); this.addKey("mv create"); this.setPermission("multiverse.core.create", "Creates a new world and loads it.", PermissionDefault.OP); + this.addCommandExample("/mv create " + ChatColor.GOLD + "world" + ChatColor.GREEN + " normal"); + this.addCommandExample("/mv create " + ChatColor.GOLD + "lavaland" + ChatColor.RED + " nether"); + this.addCommandExample("/mv create " + ChatColor.GOLD + "starwars" + ChatColor.AQUA + " skylands"); + this.addCommandExample("/mv create " + ChatColor.GOLD + "gargamel" + ChatColor.GREEN + " normal" + ChatColor.DARK_AQUA + " -s gargamel"); + this.addCommandExample("/mv create " + ChatColor.GOLD + "moonworld" + ChatColor.GREEN + " normal" + ChatColor.DARK_AQUA + " -g BukkitFullOfMoon"); } @Override diff --git a/src/main/java/com/onarandombox/MultiverseCore/commands/HelpCommand.java b/src/main/java/com/onarandombox/MultiverseCore/commands/HelpCommand.java index 1f391824..406fb18c 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/commands/HelpCommand.java +++ b/src/main/java/com/onarandombox/MultiverseCore/commands/HelpCommand.java @@ -91,7 +91,7 @@ public class HelpCommand extends MultiverseCommand { List filtered = new ArrayList(); for (Command c : availableCommands) { - if (stitchThisString(c.getKeys()).matches("(?i).*" + filter + ".*")) { + if (stitchThisString(c.getKeyStrings()).matches("(?i).*" + filter + ".*")) { filtered.add(c); } else if (c.getCommandName().matches("(?i).*" + filter + ".*")) { filtered.add(c);