1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-16 03:24:31 +02:00

Merge pull request #12 from khobbits/master

Tidy plugins.yml, tidy help.
This commit is contained in:
ementalo
2011-07-15 17:12:29 -07:00
3 changed files with 19 additions and 9 deletions

View File

@@ -54,6 +54,8 @@ public class Commandhelp extends EssentialsCommand
} }
List<String> lines = getHelpLines(user, match); List<String> lines = getHelpLines(user, match);
if (lines.size() > 0)
{
int start = (page - 1) * 9; int start = (page - 1) * 9;
int pages = lines.size() / 9 + (lines.size() % 9 > 0 ? 1 : 0); int pages = lines.size() / 9 + (lines.size() % 9 > 0 ? 1 : 0);
@@ -63,6 +65,11 @@ public class Commandhelp extends EssentialsCommand
user.sendMessage(lines.get(i)); user.sendMessage(lines.get(i));
} }
} }
else
{
user.sendMessage(Util.i18n("noHelpFound"));
}
}
@Override @Override
protected void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception protected void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception

View File

@@ -182,6 +182,7 @@ nickSet = \u00a77Your nickname is now \u00a7c{0}
noAccessCommand = \u00a7cYou do not have access to that command. noAccessCommand = \u00a7cYou do not have access to that command.
noAccessPermission = \u00a7cYou do not have permission to access that {0}. noAccessPermission = \u00a7cYou do not have permission to access that {0}.
noDestroyPermission = \u00a7cYou do not have permission to destroy that {0}. noDestroyPermission = \u00a7cYou do not have permission to destroy that {0}.
noHelpFound = \u00a7cNo matching commands.
noHomeSet = You have not set a home. noHomeSet = You have not set a home.
noHomeSetPlayer = Player has not set a home. noHomeSetPlayer = Player has not set a home.
noKitPermission = \u00a7cYou need the \u00a7c{0}\u00a7c permission to use that kit. noKitPermission = \u00a7cYou need the \u00a7c{0}\u00a7c permission to use that kit.

View File

@@ -30,7 +30,7 @@ commands:
balancetop: balancetop:
description: Gets the top x balance values. (max 10) description: Gets the top x balance values. (max 10)
usage: /<command> <max> usage: /<command> <max>
aliases: aliases: [baltop,ebaltop,ebalancetop]
ban: ban:
description: Bans a player. description: Bans a player.
usage: /<command> [player] <reason> usage: /<command> [player] <reason>
@@ -58,6 +58,7 @@ commands:
compass: compass:
description: Describes your current bearing. description: Describes your current bearing.
usage: /<command> usage: /<command>
aliases: [ecompass]
deljail: deljail:
description: Removes a jail description: Removes a jail
usage: /<command> [jailname] usage: /<command> [jailname]
@@ -80,7 +81,7 @@ commands:
ext: ext:
description: Extinguish players. description: Extinguish players.
usage: /<command> <player> usage: /<command> <player>
aliases: [extinguish] aliases: [extinguish,eext,eextinguish]
fireball: fireball:
description: Throw a fireball. description: Throw a fireball.
usage: /<command> usage: /<command>
@@ -162,6 +163,7 @@ commands:
lightning: lightning:
description: The power of Thor. Strike at cursor or player. description: The power of Thor. Strike at cursor or player.
usage: /<command> [player] usage: /<command> [player]
aliases: [strike,elightning,estrike]
mail: mail:
description: Manages inter-player, intra-server mail. description: Manages inter-player, intra-server mail.
usage: /<command> [read|clear|send [to] [message]] usage: /<command> [read|clear|send [to] [message]]
@@ -205,7 +207,7 @@ commands:
r: r:
description: Quickly reply to the last player to message you. description: Quickly reply to the last player to message you.
usage: /<command> [message] usage: /<command> [message]
aliases: [er] aliases: [er,reply,ereply]
realname: realname:
description: Displays the username of a user based on nickname. description: Displays the username of a user based on nickname.
usage: /<command> [nickname] usage: /<command> [nickname]