List now capitalizes roles
parent
14ac0e565f
commit
b30543ffea
|
@ -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(": ")
|
||||
|
|
Loading…
Reference in New Issue