mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 20:12:54 +00:00
Fixing casing and formatting issues in /list
This commit is contained in:
parent
879560092f
commit
aab6af768d
1 changed files with 6 additions and 6 deletions
|
@ -140,10 +140,10 @@ public class Commandlist extends EssentialsCommand
|
||||||
List<String> asterisk = new ArrayList<String>();
|
List<String> asterisk = new ArrayList<String>();
|
||||||
|
|
||||||
// Loop through the custom defined groups and display them
|
// 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();
|
String groupValue = ess.getSettings().getListGroupConfig().get(oConfigGroup).toString().trim();
|
||||||
configGroup = configGroup.toLowerCase();
|
String configGroup = oConfigGroup.toLowerCase();
|
||||||
|
|
||||||
// If the group value is an asterisk, then skip it, and handle it later
|
// If the group value is an asterisk, then skip it, and handle it later
|
||||||
if (groupValue.equals("*"))
|
if (groupValue.equals("*"))
|
||||||
|
@ -172,10 +172,10 @@ public class Commandlist extends EssentialsCommand
|
||||||
int limit = Integer.parseInt(groupValue);
|
int limit = Integer.parseInt(groupValue);
|
||||||
if (matchedList.size() > limit)
|
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 {
|
else {
|
||||||
sender.sendMessage(outputFormat(configGroup, listUsers(outputUserList)));
|
sender.sendMessage(outputFormat(oConfigGroup, listUsers(outputUserList)));
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue