summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-03-29 03:01:53 +0000
committerKHobbits <rob@khobbits.co.uk>2013-03-29 03:01:53 +0000
commitc1fee4469f32aeefa6fc223fc49f2d41d73e96ef (patch)
tree22b8fec61eede3273749486368608f21d398cd9a
parent596860b1cb5e3f8349b183fdb7343c9e688ba0f9 (diff)
downloadEssentials-c1fee4469f32aeefa6fc223fc49f2d41d73e96ef.tar
Essentials-c1fee4469f32aeefa6fc223fc49f2d41d73e96ef.tar.gz
Essentials-c1fee4469f32aeefa6fc223fc49f2d41d73e96ef.tar.lz
Essentials-c1fee4469f32aeefa6fc223fc49f2d41d73e96ef.tar.xz
Essentials-c1fee4469f32aeefa6fc223fc49f2d41d73e96ef.zip
Spacing.
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandlist.java21
1 files changed, 11 insertions, 10 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandlist.java b/Essentials/src/com/earth2me/essentials/commands/Commandlist.java
index 9af94853d..2d8dfdcbf 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandlist.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandlist.java
@@ -99,8 +99,8 @@ public class Commandlist extends EssentialsCommand
{
throw new Exception(_("groupDoesNotExist"));
}
-
- return outputFormat(groupName, listUsers(users));
+
+ return outputFormat(groupName, listUsers(users));
}
// Handle the merging of groups
@@ -171,12 +171,13 @@ public class Commandlist extends EssentialsCommand
outputUserList.addAll(matchedList);
int limit = Integer.parseInt(groupValue);
if (matchedList.size() > limit)
- {
- sender.sendMessage(outputFormat(oConfigGroup, _("groupNumber", matchedList.size(), commandLabel, Util.stripFormat(configGroup))));
+ {
+ sender.sendMessage(outputFormat(oConfigGroup, _("groupNumber", matchedList.size(), commandLabel, Util.stripFormat(configGroup))));
+ }
+ else
+ {
+ sender.sendMessage(outputFormat(oConfigGroup, listUsers(outputUserList)));
}
- else {
- sender.sendMessage(outputFormat(oConfigGroup, listUsers(outputUserList)));
- }
continue;
}
}
@@ -200,7 +201,7 @@ public class Commandlist extends EssentialsCommand
{
List<User> asteriskUsers = new ArrayList<User>();
for (String onlineGroup : onlineGroups)
- {
+ {
asteriskUsers.addAll(playerList.get(onlineGroup));
}
for (String key : asterisk)
@@ -218,7 +219,7 @@ public class Commandlist extends EssentialsCommand
if (ess.getPermissionsHandler().getName().equals("ConfigPermissions"))
{
onlineGroup = _("connectedPlayers");
- }
+ }
if (users == null || users.isEmpty())
{
continue;
@@ -263,6 +264,6 @@ public class Commandlist extends EssentialsCommand
outputString.append(_("listGroupTag", Util.replaceFormat(group)));
outputString.append(message);
outputString.setCharAt(0, Character.toTitleCase(outputString.charAt(0)));
- return outputString.toString();
+ return outputString.toString();
}
}