219 Commits

Author SHA1 Message Date
EdGruberman
7e382b73bb Adjust plugin enable/disable logging 2012-02-26 15:45:17 -05:00
zml2008
56d628be91 Added service register and unregister events. Addresses BUKKIT-816 2012-02-26 12:15:36 -05:00
Wesley Wolfe
332e8cad5d [Bleeding] Exception cleanup. Addresses BUKKIT-774 2012-02-18 23:55:35 -05:00
Wesley Wolfe
db57cff67c [Bleeding] Skip InvocationTargetException. Addresses BUKKIT-774 2012-02-18 23:54:57 -05:00
Erik Broes
049a7cc1d0 Deprecation cleanup. 2012-02-18 13:05:58 -05:00
Wesley Wolfe
ae4eb7c46c [Bleeding] Update serialVersionUID. 2012-02-13 02:42:05 -05:00
Feildmaster
0706671a0a [Bleeding] Added ability to register and listen to SubEvents. Addresses
BUKKIT-585
2012-02-13 01:08:15 -05:00
Zeerix
f0f593c956 [Bleeding] Cleanup of exceptions org.bukkit.plugin.Invalid*
Removed throwable and message, because the superclass already stores them
Added message of inner exception to the outer exception to make the first line of the stacktrace more verbose
2012-02-13 01:05:18 -05:00
md_5
6efe9a85e5 [Bleeding] Add the ability for plugins to ignore cancelled events when
using the new event system.
2012-02-09 15:51:56 -05:00
Meaglin
73a1c47854 Properly unregister plugin channels when a plugin gets disabled. 2012-02-09 03:49:51 -05:00
Nathan Adams
088762d67e onEnable and onDisable are no longer required implementations for JavaPlugins 2012-02-01 01:53:56 +00:00
EvilSeph
d7469ca79e Fixed plugin loader. Thanks Wolvereness! 2012-01-25 04:11:37 -05:00
Tahg
468d45b761 Updated timing code for new event system 2012-01-19 18:41:04 -05:00
Nathan Adams
92bbf8957c Added new PlayerExpChangeEvent and PlayerLevelChangeEvent events. Thanks to feildmaster for the PR. 2012-01-19 16:07:03 +00:00
Erik Broes
257e35d51c Use the type of the eventhandler method's parameter as type rather than specificing it. Thanks zml2008. 2012-01-19 08:13:49 +01:00
zml2008
81dc1c0a52 Added a default to EventHandler.priority()
Fixed HandlerList.unregisterAll()
Fixed incorrect isAssignableFrom check in SimplePluginManager.getRegistrationClass()
2012-01-18 14:46:15 +01:00
Erik Broes
e542942d45 Minor cleanup 2012-01-17 19:51:27 +01:00
Nathan Adams
86f33b82c9 [Bleeding] Changed event system into a new, much faster design. Huge thanks to @zml2008 & @lahwran. 2012-01-17 19:46:22 +01:00
rmichela
5ca940b907 [Bleeding] Added Plugin.getLogger() which returns a java.util.Logger that prefixes messages with the plugin name.
Note: the server when enabling or disabling a plugin will now by default log this.
2012-01-17 19:45:36 +01:00
Erik Broes
88c17a7f86 Generic cleaning 2012-01-15 14:37:43 +01:00
Nathan Adams
bc95edd4dc Added "class-loader-of" field to plugin.yml. Big thanks to CmdrDats for the PR. 2012-01-15 12:54:06 +00:00
Nathan Adams
a10057b541 Added an EntityCreatePortalEvent 2012-01-15 11:58:03 +00:00
Feildmaster
42f7a6b8e4 Don't send events to disabled plugins. 2012-01-15 08:18:44 +00:00
Nathan Adams
b2f0af9499 Changed PluginDisableEvent to fire before the disabling of a plugin, instead of after (where it's then invalid). Thanks to holic for the PR. 2012-01-15 08:16:57 +00:00
Feildmaster
c16210e2e2 Added ItemDespawnEvent 2012-01-14 17:01:03 +00:00
Nathan Adams
88a1512ee3 Fixed nullcheck error message on null plugin (see previous commit) 2012-01-14 14:32:56 +00:00
Nathan Adams
63673c496f Nullcheck in registerEvent (thanks to an old PR by LRFLEW - I'm sorry for the wait!) 2012-01-14 14:31:00 +00:00
Nathan Adams
ce4f4af087 Implemented new Plugin Message API - see http://dinnerbone.com/blog/2012/01/13/minecraft-plugin-channels-messaging/ 2012-01-13 08:53:14 +00:00
Tahg
b063a7246a Added timings command. 2012-01-09 23:44:17 -05:00
Nathan Adams
76c23ee588 Fix NPE when saving config before the config is loaded - thanks to Wolvereness for the pull request 2012-01-07 15:11:22 +00:00
Erik Broes
c5063fa024 Minor text changes 2012-01-04 09:09:25 +01:00
Erik Broes
b9fca3c04d Generic cleanup of warnings, whitespace and style. 2011-12-25 16:02:30 +01:00
Nathan Adams
a345613cfa Added plugin saveResources + saveDefaultConfig methods. This completes a bleeding branch by deltahat at http://forums.bukkit.org/threads/branch-complete-savedefaultconfig.48721/ 2011-12-22 21:18:36 +00:00
Nathan Adams
a7beacd2ff Fixed silly NPE during shutdown when java becomes a meanie-pants and steals our lunch money :( 2011-12-09 17:14:00 +00:00
Nathan Adams
bbbda45739 Added onStructureGrow event, thanks to md-5. 2011-12-09 16:12:05 +00:00
Nathan Adams
47432229cf Fixed the fix of the fix of javaplugin.getResource 2011-11-22 00:03:16 +00:00
Nathan Adams
27beb951f0 Fixed getResource not working post-reload, thanks to feildmaster 2011-11-13 11:11:45 +00:00
Erik Broes
eefcef5480 Revert "Added the ability to register commands dynamically."
This reverts commit 737d6347b1d74e13191df7c521d8db30fa174c9b.
Because this is *NOT* how it should be.
2011-10-13 18:27:34 +02:00
sk89q
b04b8379c6 Added the ability to register commands dynamically. 2011-10-13 01:17:10 -07:00
Nathan Adams
984c8ec90d Added reloadConfig() plugin method 2011-10-11 15:50:59 +01:00
Nathan Adams
c97dbc198d Fixed NPE on unloading plugins 2011-10-11 04:41:34 +01:00
Nathan Adams
5d8833a11c Lazy-load the old and new configs for plugins .getConfig 2011-10-10 23:04:01 +01:00
Nathan Adams
4485364e17 Small javadoc cleanup 2011-10-10 21:58:44 +01:00
Nathan Adams
8fd0cfc07f Updated snakeyaml to 1.9 (up from 1.7) 2011-10-10 21:39:27 +01:00
Dinnerbone
ee27cc07f0 Added new Configuration classes 2011-10-10 21:06:34 +01:00
sunkid
a457ea9784 Added PlayerChangedWorldEvent. 2011-10-01 15:35:04 -04:00
EvilSeph
0f885de3ba Moved itr.remove() in loadPlugins(). Thanks lahwran!
This was moved so that the loop does not end until it has gone through a
whole pass without finding any loadable plugins.
2011-10-01 13:56:17 -04:00
EvilSeph
7e210807f6 Added SlimeSplit event. Thanks garbagemule!
The SlimeSplit event is fired when a Slime attempts to split upon death. The event may be cancelled, and the amount of smaller slimes may be customized.
2011-09-30 19:50:27 -04:00
sk89q
fff5598704 Added server list ping event. 2011-09-26 15:32:01 -07:00
Dinnerbone
fe4f4c5f58 Many javadoc fixes thanks to Celtic Minstrel 2011-09-25 02:56:40 +01:00