10 Commits

Author SHA1 Message Date
Dinnerbone
1fd394bc7c Moved all vanilla commands into Bukkit 2011-09-03 15:56:35 +01:00
Dinnerbone
c1f858534b Fixed java ver method 2011-09-02 19:35:58 +01:00
Dinnerbone
0d11aa7cca Commands now have the ability to set a permission required before execution 2011-09-02 19:27:12 +01:00
stevenh
4c7d1459d2 Reworked command registration so that aliases are secondary to the primary command label requested
Updated docs to reflect what the code really does
This adds a few new methods to Command including:-
* A full constructor that takes descriptio, usageMassage and aliases for convenience
* getLabel() which returns the active label for a command, which is derived from the Command name or subsiquent call to setLabel(..)
* A number of registration functions for use in the CommandMap implementer
Also of note is Command.getAliases() no returns the "active" aliases
2011-05-22 20:42:26 +01:00
Erik Broes
992f1f2bf3 Whitespace + general cleanup 2011-05-15 14:06:02 +02:00
Dinnerbone
7867b27965 All previous deprecated methods removed (OH GOD EVERYTHING BROKEN) 2011-03-14 15:05:46 +00:00
Dinnerbone
0f95f3063a command.set/getDescription replaces a now deprecated set/getTooltip + javadocs 2011-02-28 11:42:09 +00:00
Dinnerbone
95d92e406e Tweaks to command system to allow setting executors via plugins (no more ambiguous onCommand in plugins) 2011-02-28 00:30:59 +00:00
stevenh
a89a96416b Refactored event calling so its front loading avoiding the lookup for each event call.
This now uses an annoymous class implementing IExecutor that facilitates direct event method handler calling

Changed commands from being executed exclusively by a player to by a CommandSender to facilitate external command callers such as rcon

Fixed CustomEventListener

Merged in additional events

Added getFullName to PluginDescriptionFile which returns the combination of Name and Version

There's also a few bits of reformatting as it seems someones been editing with either tabs or dos eol :(
2011-01-29 16:23:56 +00:00
VictorD
0951ed5de8 Updated commands to have optional aliases, and to fallback to /pluginName:cmdName on name conflict. 2011-01-18 01:12:50 +01:00