Add some examples to create, upgrade CH

This commit is contained in:
Eric Stokes 2011-08-02 19:13:23 -06:00
parent 4a478d159b
commit 34a0ab2e67
3 changed files with 7 additions and 2 deletions

@ -1 +1 @@
Subproject commit f5cd7a8ce50c5e10fd92e28bd4ae755ff5695ddd
Subproject commit 882ba77aa122413ebaeb70df96afe10e2845f76f

View File

@ -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

View File

@ -91,7 +91,7 @@ public class HelpCommand extends MultiverseCommand {
List<Command> filtered = new ArrayList<Command>();
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);