summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2011-07-15 20:59:40 +0100
committerKHobbits <rob@khobbits.co.uk>2011-07-15 20:59:40 +0100
commitd7080950b09410073cec3857e993db29be36ef99 (patch)
treeda9c57ab67bea98392b8ebef1d052536cb60b1d8
parent39352da929d4e6b8c536e1fb313019863e24ea6d (diff)
downloadEssentials-d7080950b09410073cec3857e993db29be36ef99.tar
Essentials-d7080950b09410073cec3857e993db29be36ef99.tar.gz
Essentials-d7080950b09410073cec3857e993db29be36ef99.tar.lz
Essentials-d7080950b09410073cec3857e993db29be36ef99.tar.xz
Essentials-d7080950b09410073cec3857e993db29be36ef99.zip
Format.
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandhelp.java19
1 files changed, 9 insertions, 10 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java b/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java
index 932f45974..c105e2e41 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java
@@ -56,21 +56,20 @@ public class Commandhelp extends EssentialsCommand
List<String> lines = getHelpLines(user, match);
if (lines.size() > 0)
{
- int start = (page - 1) * 9;
- int pages = lines.size() / 9 + (lines.size() % 9 > 0 ? 1 : 0);
-
- user.sendMessage(Util.format("helpPages", page, pages));
- for (int i = start; i < lines.size() && i < start + 9; i++)
- {
- user.sendMessage(lines.get(i));
- }
+ int start = (page - 1) * 9;
+ int pages = lines.size() / 9 + (lines.size() % 9 > 0 ? 1 : 0);
+
+ user.sendMessage(Util.format("helpPages", page, pages));
+ for (int i = start; i < lines.size() && i < start + 9; i++)
+ {
+ user.sendMessage(lines.get(i));
+ }
}
else
{
user.sendMessage(Util.i18n("noHelpFound"));
}
-}
-
+ }
@Override
protected void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception