summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-03-29 02:59:55 +0000
committerKHobbits <rob@khobbits.co.uk>2013-03-29 02:59:55 +0000
commit596860b1cb5e3f8349b183fdb7343c9e688ba0f9 (patch)
tree3c6e6856eca1a7b936c1061de39e4338ac0a8f5e
parentd34bdf01442cd9b9342f07e63d8b8895fbe9ff9e (diff)
downloadEssentials-596860b1cb5e3f8349b183fdb7343c9e688ba0f9.tar
Essentials-596860b1cb5e3f8349b183fdb7343c9e688ba0f9.tar.gz
Essentials-596860b1cb5e3f8349b183fdb7343c9e688ba0f9.tar.lz
Essentials-596860b1cb5e3f8349b183fdb7343c9e688ba0f9.tar.xz
Essentials-596860b1cb5e3f8349b183fdb7343c9e688ba0f9.zip
Fixing casing and formatting issues in /list
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandlist.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandlist.java b/Essentials/src/com/earth2me/essentials/commands/Commandlist.java
index 02c46a176..9af94853d 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandlist.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandlist.java
@@ -140,10 +140,10 @@ public class Commandlist extends EssentialsCommand
List<String> asterisk = new ArrayList<String>();
// Loop through the custom defined groups and display them
- for (String configGroup : configGroups)
+ for (String oConfigGroup : configGroups)
{
- String groupValue = ess.getSettings().getListGroupConfig().get(configGroup).toString().trim();
- configGroup = configGroup.toLowerCase();
+ String groupValue = ess.getSettings().getListGroupConfig().get(oConfigGroup).toString().trim();
+ String configGroup = oConfigGroup.toLowerCase();
// If the group value is an asterisk, then skip it, and handle it later
if (groupValue.equals("*"))
@@ -172,10 +172,10 @@ public class Commandlist extends EssentialsCommand
int limit = Integer.parseInt(groupValue);
if (matchedList.size() > limit)
{
- sender.sendMessage(outputFormat(configGroup, _("groupNumber", matchedList.size(), commandLabel, configGroup)));
+ sender.sendMessage(outputFormat(oConfigGroup, _("groupNumber", matchedList.size(), commandLabel, Util.stripFormat(configGroup))));
}
else {
- sender.sendMessage(outputFormat(configGroup, listUsers(outputUserList)));
+ sender.sendMessage(outputFormat(oConfigGroup, listUsers(outputUserList)));
}
continue;
}
@@ -223,7 +223,7 @@ public class Commandlist extends EssentialsCommand
{
continue;
}
- String groupName = users.get(0).getGroup();
+ String groupName = users.get(0).getGroup();
sender.sendMessage(outputFormat(groupName, listUsers(users)));
}
}