Sort by name

This commit is contained in:
Andrew
2013-11-06 22:11:31 +13:00
parent b47d5e8b5f
commit a0f96778e9
4 changed files with 30 additions and 30 deletions

View File

@@ -127,13 +127,6 @@ public class DisguiseHelpCommand extends BaseDisguiseCommand {
return true;
}
public String toReadable(String string) {
String[] split = string.split("_");
for (int i = 0; i < split.length; i++)
split[i] = split[i].substring(0, 1) + split[i].substring(1).toLowerCase();
return StringUtils.join(split, "_");
}
/**
* Send the player the information
*/
@@ -153,4 +146,11 @@ public class DisguiseHelpCommand extends BaseDisguiseCommand {
sender.sendMessage(ChatColor.RED + "/disguisehelp PotionEffect " + ChatColor.GREEN
+ "- View all the potion effects you can set");
}
public String toReadable(String string) {
String[] split = string.split("_");
for (int i = 0; i < split.length; i++)
split[i] = split[i].substring(0, 1) + split[i].substring(1).toLowerCase();
return StringUtils.join(split, "_");
}
}