List now capitalizes roles

master
Etzelia 2018-09-15 16:44:38 -05:00
parent 14ac0e565f
commit b30543ffea
1 changed files with 4 additions and 1 deletions

View File

@ -37,8 +37,11 @@ public class ListCommand implements CommandExecutor {
}
StringBuilder message = new StringBuilder();
for (String key : list.keySet()) {
List<String> parts = Arrays.asList(key.split("_"));
parts.forEach(StringUtils::capitalize);
for (int i = 0; i < parts.size(); i++) {
parts.set(i, StringUtils.capitalize(parts.get(i)));
}
message.append(ChatColor.GOLD)
.append(StringUtils.join(parts, " "))
.append(": ")