diff options
author | ementalo <suror@gmx.co.uk> | 2011-07-15 17:12:29 -0700 |
---|---|---|
committer | ementalo <suror@gmx.co.uk> | 2011-07-15 17:12:29 -0700 |
commit | 8c96a03a76f47b2dc65fa11c2ac7a9b4f0b57b0f (patch) | |
tree | 3878ce60e74f0491200c483670ef582961d8b217 | |
parent | a9ac052381917faa89bcd0715619c962591ee0cd (diff) | |
parent | 970db678b39fb17641d7cd386d7a583833646d39 (diff) | |
download | Essentials-8c96a03a76f47b2dc65fa11c2ac7a9b4f0b57b0f.tar Essentials-8c96a03a76f47b2dc65fa11c2ac7a9b4f0b57b0f.tar.gz Essentials-8c96a03a76f47b2dc65fa11c2ac7a9b4f0b57b0f.tar.lz Essentials-8c96a03a76f47b2dc65fa11c2ac7a9b4f0b57b0f.tar.xz Essentials-8c96a03a76f47b2dc65fa11c2ac7a9b4f0b57b0f.zip |
Merge pull request #12 from khobbits/master
Tidy plugins.yml, tidy help.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandhelp.java | 17 | ||||
-rw-r--r-- | Essentials/src/messages_en.properties | 1 | ||||
-rw-r--r-- | Essentials/src/plugin.yml | 8 |
3 files changed, 18 insertions, 8 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java b/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java index 10e8f31ab..c105e2e41 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java @@ -54,13 +54,20 @@ public class Commandhelp extends EssentialsCommand } List<String> lines = getHelpLines(user, match); - int start = (page - 1) * 9; - int pages = lines.size() / 9 + (lines.size() % 9 > 0 ? 1 : 0); + 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(Util.format("helpPages", page, pages)); + for (int i = start; i < lines.size() && i < start + 9; i++) + { + user.sendMessage(lines.get(i)); + } + } + else { - user.sendMessage(lines.get(i)); + user.sendMessage(Util.i18n("noHelpFound")); } } diff --git a/Essentials/src/messages_en.properties b/Essentials/src/messages_en.properties index b8d479a78..d65e6fd7f 100644 --- a/Essentials/src/messages_en.properties +++ b/Essentials/src/messages_en.properties @@ -182,6 +182,7 @@ nickSet = \u00a77Your nickname is now \u00a7c{0} noAccessCommand = \u00a7cYou do not have access to that command. noAccessPermission = \u00a7cYou do not have permission to access that {0}. noDestroyPermission = \u00a7cYou do not have permission to destroy that {0}. +noHelpFound = \u00a7cNo matching commands. noHomeSet = You have not set a home. noHomeSetPlayer = Player has not set a home. noKitPermission = \u00a7cYou need the \u00a7c{0}\u00a7c permission to use that kit. diff --git a/Essentials/src/plugin.yml b/Essentials/src/plugin.yml index d3113a636..26bcf5806 100644 --- a/Essentials/src/plugin.yml +++ b/Essentials/src/plugin.yml @@ -30,7 +30,7 @@ commands: balancetop:
description: Gets the top x balance values. (max 10)
usage: /<command> <max>
- aliases:
+ aliases: [baltop,ebaltop,ebalancetop]
ban:
description: Bans a player.
usage: /<command> [player] <reason>
@@ -58,6 +58,7 @@ commands: compass:
description: Describes your current bearing.
usage: /<command>
+ aliases: [ecompass]
deljail:
description: Removes a jail
usage: /<command> [jailname]
@@ -80,7 +81,7 @@ commands: ext:
description: Extinguish players.
usage: /<command> <player>
- aliases: [extinguish]
+ aliases: [extinguish,eext,eextinguish]
fireball:
description: Throw a fireball.
usage: /<command>
@@ -162,6 +163,7 @@ commands: lightning:
description: The power of Thor. Strike at cursor or player.
usage: /<command> [player]
+ aliases: [strike,elightning,estrike]
mail:
description: Manages inter-player, intra-server mail.
usage: /<command> [read|clear|send [to] [message]]
@@ -205,7 +207,7 @@ commands: r:
description: Quickly reply to the last player to message you.
usage: /<command> [message]
- aliases: [er]
+ aliases: [er,reply,ereply]
realname:
description: Displays the username of a user based on nickname.
usage: /<command> [nickname]
|