From b30543ffeadfa39d955deb955c95374e354a6833 Mon Sep 17 00:00:00 2001 From: Etzelia Date: Sat, 15 Sep 2018 16:44:38 -0500 Subject: [PATCH] List now capitalizes roles --- src/main/java/xyz/etztech/qol/commands/ListCommand.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/xyz/etztech/qol/commands/ListCommand.java b/src/main/java/xyz/etztech/qol/commands/ListCommand.java index 9f150c5..da5c8ea 100644 --- a/src/main/java/xyz/etztech/qol/commands/ListCommand.java +++ b/src/main/java/xyz/etztech/qol/commands/ListCommand.java @@ -37,8 +37,11 @@ public class ListCommand implements CommandExecutor { } StringBuilder message = new StringBuilder(); for (String key : list.keySet()) { + List 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(": ")