60 Commits

Author SHA1 Message Date
Erik Broes
049a7cc1d0 Deprecation cleanup. 2012-02-18 13:05:58 -05:00
Feildmaster
0706671a0a [Bleeding] Added ability to register and listen to SubEvents. Addresses
BUKKIT-585
2012-02-13 01:08:15 -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
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
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
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
Erik Broes
88c17a7f86 Generic cleaning 2012-01-15 14:37:43 +01:00
Feildmaster
42f7a6b8e4 Don't send events to disabled plugins. 2012-01-15 08:18:44 +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
Tahg
b063a7246a Added timings command. 2012-01-09 23:44:17 -05:00
Erik Broes
b9fca3c04d Generic cleanup of warnings, whitespace and style. 2011-12-25 16:02:30 +01: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
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
Dinnerbone
fe4f4c5f58 Many javadoc fixes thanks to Celtic Minstrel 2011-09-25 02:56:40 +01:00
Dinnerbone
3d04c67ae4 Switched to native weak hashmap instead of guavas for SimplePluginManager 2011-09-17 22:38:55 +01:00
Dinnerbone
e1f69e0867 Added the ability to access offline players & more reverse lookup fixes in Permissible. 2011-09-03 00:41:22 +01:00
Dinnerbone
320d3ca835 Added method to retrieve all registered permissions 2011-08-29 14:58:42 +01:00
Dinnerbone
ca86ea1eb7 Made Permissions mutable, added methods to view which Permissibles are subscribed to which Permission 2011-07-20 18:05:04 +01:00
Dinnerbone
fb594732b5 Added new permission system 2011-07-17 17:17:47 +01:00
Dinnerbone
c8b4ecc00a Register commands on any enable 2011-06-26 02:46:16 +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
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
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
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
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
sk89q
3791a158de Added pre-login event for catching logins right after name verification has completed. This happens in a different thread from the server (and thus can also block). 2011-04-16 03:08:05 -07:00
Erik Broes
5fd890208f Plugin's datafolders are now named after the plugin's name (from config.yml)
The code will automagically rename the old data folder to the new format (if it can)
or else throw a fatal error you better solve :D
2011-04-03 16:12:44 +02:00
Erik Broes
9c1210e312 Fix IIOB error when dealing with an incomplete YAML && Nagging 2011-04-01 10:24:48 +02:00
Dinnerbone
2362fc6511 We weren't supposed to break things *that* hard. Plugins still need to update but here's a TEMPORARY fix. 2011-03-31 22:51:26 +01:00
Erik Broes
f5803e1876 Just NAG once, to be nice 2011-03-30 00:38:46 +02:00
Erik Broes
a3319e525b Add 'NagException' to disclose plugin fail 2011-03-30 00:25:11 +02:00
Dinnerbone
a1e7fb38c1 RegisterInterface reload bug fix 2011-03-29 21:29:46 +01:00
Erik Broes
94894216e8 Some more backwards incompatible changes (minor though), also a ton of small cleanup.
onPluginEnable(PluginEvent event)   -> onPluginEnable(PluginEnableEvent event)
onPluginDisable(PluginEvent event)  -> onPluginDisable(PluginDisableEvent event)
onVehicleUpdate(VehicleEvent event) -> onVehicleUpdate(VehicleUpdateEvent event)
onWorldSave(WorldEvent event)       -> onWorldSave(WorldSaveEvent event)
onWorldLoad(WorldEvent event)       -> onWorldLoad(WorldLoadEvent event)
2011-03-26 22:32:14 +01:00
Dinnerbone
6f9b8479c6 Plugins can no longer register events while disabled 2011-03-14 15:11:43 +00:00
Dinnerbone
4879aee1b5 Adds basic plugin dependencies, courtesy of Raphfrk 2011-03-07 14:04:00 +00:00
VictorD
aa0614d785 Added a few null pointer checks and performed minor touchups (tried improving a few equals, clone and hashCode methods). 2011-03-05 12:27:51 +01:00
Dinnerbone
414a19e247 Updating plugin nags to use logger 2011-02-20 02:29:12 +00:00
Dinnerbone
3c1255da0c Added Server.getLogger, changed a few anonymous loggers to use it 2011-02-20 02:27:31 +00:00
Dinnerbone
bc8134c7a1 And this is so that we don't have to support misbehaving plugins. 2011-02-20 00:47:21 +00:00
Dinnerbone
eb7d3710e1 Fixed event priorities 2011-02-19 20:43:35 +00:00
Raphfrk
2d43dcc125 Scheduler 2011-02-07 01:06:20 +01:00
stevenh
47af4404bf Renamed IExecutor -> CommandExecutor and fixed SERVER_COMMAND doc 2011-01-29 21:17:36 +00:00
stevenh
39c4a5a2e9 merge with head 2011-01-29 17:18:32 +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