524 Commits

Author SHA1 Message Date
stevenh
6fcf7e190f Fixed no command found being sent to the command sender for command handlers which return failure (false) 2011-05-23 23:59:47 +01:00
stevenh
a308c24a59 Added check and catch for errors during cancelTasks and unregister of services during plugin disable 2011-05-22 22:18:05 +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
Celtic Minstrel
238eabc084 Fixed command aliases priorities.
Command aliases are now given lower weight than the "official" name of the command; this allows you to define aliases without worrying about them overriding someone else's command.
2011-05-16 00:41:51 -04:00
EvilSeph
d72be8bd86 Added get/setLastDamageCause. Thanks sunkid! 2011-05-16 00:25:35 -04:00
EvilSeph
12578557ad Made disabled plugins show up in red in the plugins list. Thanks Yetanotherx! 2011-05-15 20:07:53 -04:00
EvilSeph
6590ff82f4 Reverted commits that broke plugin class loading, pending investigation. 2011-05-15 19:20:30 -04:00
Erik Broes
992f1f2bf3 Whitespace + general cleanup 2011-05-15 14:06:02 +02:00
sk89q
56816c9aa8 Fixed errors during plugin enable/disable leaving Bukkit in an undefined state. Previous fix would at least prevent plugins from breaking the server, but it aborted the enable/disable process prematurely. 2011-05-13 18:18:26 -07:00
stevenh
f3b752c5d9 Guarded against plugins throwing exceptions on enable and disable to prevent potential corruption issues on server start and stop 2011-05-13 14:50:03 +01:00
stevenh
e0c9b44db9 Fixed java plugin class loader so it works with plugins that contain classes also present in other plugins.
This also removes the changes from commit 1c4bde50bc12d130f6c8 which was added in order to fix this issue but wasn't ideal as it required plugins to be updated which isnt required with this fix
2011-05-13 01:57:00 +01:00
Dinnerbone
4188ba6215 Added @DontExport annotation for telling Bukkit not to share a class with another plugin 2011-05-12 23:09:24 +01:00
Dinnerbone
ed7a7ab265 Line endings. Don't make me yell at you. 2011-05-12 22:28:09 +01:00
Andrew Ardill
79f2d05482 Added ability to saddle a pig to the API. Thanks xPaw! 2011-05-11 17:44:31 -07:00
sk89q
b87835c16d Added dispenser event. 2011-05-08 02:57:26 -07:00
sk89q
8b13c8827c Added World.strikeLightningEffect() that does no damage. 2011-05-06 19:25:43 -07:00
sk89q
2f553fed80 Changed LightningStrikeEvent to return a LightningStrike and not an Entity. 2011-05-06 19:24:40 -07:00
EvilSeph
6d4df77586 Added support for an update on load feature for plugins. Thanks Raphfrk!
Any files placed in the new (optional) update folder are automatically copied into the plugins directory the next time a reload happens. This allows safe updating of the plugin .jar files.
2011-05-05 20:18:12 -04:00
sk89q
f31699cce7 Unadded (redundant) Wolf.isTamed(). 2011-05-02 21:36:48 -07:00
sk89q
bfafbca8ae Added Wolf.isTamed(). 2011-05-02 11:34:01 -07:00
sk89q
25faa992ec Added services manager framework. Services are interfaces that specifies capabilities to be implemented by providers. Example services include economy, <insert example 2>, etc. 2011-05-02 11:31:30 -07:00
sk89q
913c9851c9 Added method to fake a block change request for a player. Alas, my Justin Bieber playing sign can work again! 2011-05-02 11:31:29 -07:00
sk89q
124d369d47 Added Player.playNote(). 2011-05-02 11:31:29 -07:00
sk89q
d9e8461bbb Added NoteBlock.play(instrument, note). 2011-05-02 11:31:29 -07:00
Andrew Ardill
daaf0aa6a9 AnimalTamer and Tameable interfaces, and corresponding features.
Documentation improvements.
2011-05-03 00:36:02 +10:00
Mike Primm
18b3a7a919 Add new Wolf methods for taming 2011-05-02 23:51:50 +10:00
EvilSeph
7570b5bfaf Added PlayerInteractEntityEvent which fires when a player right clicks an entity. Thanks fullwall! 2011-05-02 04:31:42 -04:00
EvilSeph
e969067ce3 Removed trailing spaces. 2011-05-02 04:15:27 -04:00
Raphfrk
4c06eff3be Added support for soft dependencies.
Soft dependencies allow plugins to request to be loaded after another plugin, but they will not throw an UnknownDependency exception if the other plugin is not present.
2011-05-02 03:33:46 -04:00
Raphfrk
5c654eeb3d Improved the Scheduler.
Adds nag message when async tasks are not properly shut down and adds a limiter for sync tasks. Once they use 35ms in a single tick, any remaining tasks are not executed until later ticks. Adds a method to report the pending tasks and one to report active worker threads
2011-05-02 02:34:59 -04:00
Raphfrk
5956abc439 Added setArmorContents as a method for PlayerInventory. 2011-05-02 02:08:06 -04:00
EvilSeph
8b1190626b Added SnowFormEvent. Thanks aPunch! 2011-05-02 01:46:55 -04:00
EvilSeph
a231c514d9 Removed trailing spaces. 2011-05-02 01:18:23 -04:00
Rigby
5315ea2595 Added per world PVP setting support. 2011-05-02 00:28:33 -04:00
Celtic Minstrel
6ed9db18b7 Add recipe classes and an addRecipe method in the server interface. 2011-05-01 23:40:15 -04:00
EvilSeph
8e95e2788a Fixed formatting and removed tabs. 2011-04-27 23:48:43 -04:00
EvilSeph
a5aa113ce3 Added a lot of events relating to weather, including those for entities. Thanks wizjany! 2011-04-25 19:46:10 -04:00
Stephen
bd5d86665a Added painting events (thanks verrier and tanelsuurhans) 2011-04-25 23:25:55 +02:00
sunkid
fc035ee709 Added MaterialData support for SAPPLING, POWERED_RAIL, and DETECTOR_RAIL. 2011-04-25 17:17:21 -04:00
Rigby
590fbbc104 Added the ability to retrieve a world's Seed. 2011-04-25 16:48:44 -04:00
Erik Broes
b39503de71 Updated README for line-ending demands, also fixed line-endigs. 2011-04-25 13:24:32 +02:00
EvilSeph
cba06d412f Fixed getData() not returning the correct values. 2011-04-25 07:17:12 -04:00
EvilSeph
cc3f7710ef Fixed AIOOBE when entering a space into console and hitting enter. 2011-04-24 21:49:45 -04:00
sk89q
98b331ba86 Add methods to control thunder. 2011-04-22 03:12:54 -07:00
sk89q
aaa5278efb Added weather control methods. 2011-04-22 02:17:53 -07:00
sk89q
95429ad663 Added World.strikeLightning(). Also renamed WeatherStorm -> LightningStrike. 2011-04-22 01:25:41 -07:00
sk89q
ca74c6d3ee Added lightning as a cause for fires. 2011-04-22 01:20:49 -07:00
Dinnerbone
539e822e33 Added Achievement and Statistics 2011-04-21 20:56:19 +01:00
Dinnerbone
626edb3eb0 Added LIGHTNING as a possible source of damage 2011-04-21 17:29:07 +01:00
Dinnerbone
bc7d54dda4 Added Weather and WeatherStorm 2011-04-21 16:51:43 +01:00