diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java b/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java index 3a93e82b1..9d8344ec1 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java @@ -31,11 +31,12 @@ public class Commandhelp extends EssentialsCommand protected void run(Server server, User user, String commandLabel, String[] args) throws Exception { int page = 1; - String match = args[0].toLowerCase(); + String match = ""; try { if (args.length > 0) { + match = args[0].toLowerCase(); page = Integer.parseInt(args[args.length - 1]); if (args.length == 1) { @@ -46,6 +47,10 @@ public class Commandhelp extends EssentialsCommand } catch (Exception ex) { + if (args.length == 1) + { + match = args[0].toLowerCase(); + } } List lines = getHelpLines(user, match); @@ -107,8 +112,8 @@ public class Commandhelp extends EssentialsCommand final HashMap> cmds = (HashMap>)desc.getCommands(); for (Entry> k : cmds.entrySet()) { - if ((!match.equalsIgnoreCase("")) && (!p.getDescription().getName().toLowerCase().contains(match)) - && (!p.getDescription().getDescription().toLowerCase().contains(match))) + if ((!match.equalsIgnoreCase("")) && (!k.getKey().toLowerCase().contains(match)) + && (!k.getValue().get("description").toLowerCase().contains(match))) { continue; } diff --git a/Essentials/src/config.yml b/Essentials/src/config.yml index a3607c4ce..1908b1d2e 100644 --- a/Essentials/src/config.yml +++ b/Essentials/src/config.yml @@ -51,6 +51,7 @@ default-stack-size: 64 item-spawn-blacklist: # Set this to true if you want permission based item spawn rules +# Note: The blacklist above will be ignored then. # Permissions: # - essentials.itemspawn.item-all # - essentials.itemspawn.item-[itemname] diff --git a/Essentials/src/plugin.yml b/Essentials/src/plugin.yml index 300912857..a2e4a6266 100644 --- a/Essentials/src/plugin.yml +++ b/Essentials/src/plugin.yml @@ -12,11 +12,11 @@ commands: usage: / aliases: [eafk] antioch: - description: 'A little surprise for operators. Warning: Point away from face.' + description: 'A little surprise for operators.' usage: / aliases: [eantioch] back: - description: Teleports you to your location prior to teleporting/spawning/warping. + description: Teleports you to your location prior to tp/spawn/warp. usage: / aliases: [eback] backup: @@ -24,7 +24,7 @@ commands: usage: / aliases: [ebackup] balance: - description: States the current balance of a player. Defaults to self. + description: States the current balance of a player. usage: / aliases: [bal,emoney,ebalance,ebal] ban: @@ -57,6 +57,7 @@ commands: deljail: description: Removes a jail usage: / [jailname] + aliases: [edeljail] delwarp: description: Deletes the specified warp. usage: / [warp] @@ -85,7 +86,7 @@ commands: usage: / aliases: [coords,egetpos] gc: - description: Reports garbage collection info; useful to plugin/CraftBukkit developers + description: Reports garbage collection info; useful to developers. usage: / aliases: [mem,memory,egc] give: @@ -102,7 +103,7 @@ commands: aliases: [eheal] help: description: Views a list of available commands. - usage: / + usage: / [search term] [page] aliases: [ehelp] helpop: description: Request help from online operators. @@ -118,7 +119,7 @@ commands: info: description: Shows information set by the server owner usage: / [chapter] [page] - aliases: [ifo,einfo,eabout] + aliases: [ifo,einfo,eabout,news] invsee: description: See the inventory of other players. usage: / @@ -142,19 +143,21 @@ commands: kickall: description: Kicks all players off the server except the issuer. usage: / + aliases: [ekickall] kit: description: Obtains the specified kit or views all available kits. usage: / kill: description: Kills specified player. usage: / + aliases: [ekill] list: description: List all online players. usage: / aliases: [playerlist,who,online,elist] lightning: - description: Command the power of Thor. Look and strike or pass a player args. - usage: / + description: The power of Thor. Strike at cursor or player. + usage: / [player] mail: description: Manages inter-player, intra-server mail. usage: / [read|clear|send [to] [message]] @@ -200,7 +203,7 @@ commands: usage: / [message] aliases: [er] realname: - description: Displays the username of a user based on his/her nickname. + description: Displays the username of a user based on nickname. usage: / [nickname] aliases: [erealname] reloadall: @@ -214,6 +217,7 @@ commands: seen: description: Shows the last logout time of a player usage: / [playername] + aliases: [eseen] sell: description: Sells the item currently in your hand. usage: / [itemname|id|hand|inventory|blocks] [-][amount] @@ -231,15 +235,17 @@ commands: usage: / [warp] aliases: [createwarp,esetwarp] setworth: - description: Set the value of an item for sale, will add item if doesn't exist + description: Set the sell value of an item. usage: / [itemname|id] [price] aliases: [esetworth] socialspy: - description: Toggles if you can see /msg and /mail commands in chat. + description: Toggles if you can see msg/mail commands in chat. usage: / + aliases: [esocialspy] spawner: description: Change the mob type of a spawner usage: / [mob] + aliases: [espawner] spawnmob: description: Spawns a mob. usage: / [mob]<:data><,mount<:data>> @@ -251,9 +257,11 @@ commands: tempban: description: Temporary ban a user. usage: / [playername] [datediff] + aliases: [etempban] thunder: description: Enable/disable thunder. usage: / [duration] + aliases: [ethunder] time: description: Change the server time to day or night. usage: / [day|night] @@ -263,7 +271,7 @@ commands: usage: / [player] [jailname] aliases: [tjail,etogglejail] top: - description: Teleport to the highest block at your current coordinates. + description: Teleport to the highest block at your current position. usage: / aliases: [etop] tp: @@ -280,7 +288,7 @@ commands: description: Request that the specified player teleport to you. usage: / tpall: - desctiption: Teleport all online players to another player. + description: Teleport all online players to another player. usage: / tpdeny: description: Reject a teleport request. @@ -288,7 +296,7 @@ commands: tphere: description: Teleport a player to you. usage: / [player] - aliases: s + aliases: [s] tpo: description: Teleport override for tptoggle. usage: / @@ -308,8 +316,7 @@ commands: unban: description: Unbans the specified player. usage: / [player] - aliases: pardon - aliases: [eunban] + aliases: [pardon,eunban] unbanip: description: Unbans the specified IP address. usage: / [address] @@ -325,7 +332,7 @@ commands: weather: description: Setting the weather. usage: / [duration] - aliases: [sky] + aliases: [sky,sun,storm,eweather] whois: description: Determine the username behind a nickname. usage: / [nickname]