153 Commits

Author SHA1 Message Date
Erik Broes
cc899b0048 Change some more signatures :(
onPlayerCommandPreprocess(PlayerChatEvent event) -> onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event)
onBlockFlow(BlockFromToEvent event)     -> onBlockFromTo(BlockFromToEvent event)
onPlayerJoin(PlayerEvent event)         -> onPlayerJoin(PlayerJoinEvent event)
onPlayerQuit(PlayerEvent event)         -> onPlayerQuit(PlayerQuitEvent event)
onPlayerTeleport(PlayerMoveEvent event) -> onPlayerTeleport(PlayerTeleportEvent event)
2011-03-27 00:16:06 +01:00
Erik Broes
7004b6f040 Fix some wrong event creations after previous change 2011-03-26 23:19:50 +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
Raphfrk
6ece05bc73 Added player join event 2011-03-26 15:32:29 +01:00
Raphfrk
2275372cb1 Fixed basic dependency functionality - If class can't be found, all other .jar files are scanned 2011-03-25 20:36:59 +01:00
Erik Broes
700c8a20dd Add PLAYER_INTERACT, remove BLOCK_RIGHT_CLICK, BLOCK_INTERACT and PLAYER_ITEM 2011-03-23 16:58:43 +01:00
Erik Broes
f0544a90fc Added PlayerBucket events 2011-03-23 16:58:43 +01:00
Erik Broes
8cf7b9e371 Renamed many events/constants to be not past tense <-- Major Break says: "HI" 2011-03-23 16:58:26 +01:00
Dinnerbone
eb534613ac onLoad optional... 2011-03-15 11:45:11 +00:00
Dinnerbone
6f9b8479c6 Plugins can no longer register events while disabled 2011-03-14 15:11:43 +00:00
Raphfrk
ebf1904fff Adds an onLoad method to Plugin. The onLoad method is called for all plugins before the onEnable calls 2011-03-14 14:46:11 +00:00
Dinnerbone
d733a32f7c Reverted classloader changes by 1f0d89be27, now actually works! Again! 2011-03-08 18:22:52 +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
2b1dc975f1 Added JavaPlugin.getCommand 2011-02-28 01:35:03 +00:00
Dinnerbone
2d7d0d9bdd Readded default onCommand on plugins 2011-02-28 00:45:44 +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
Dinnerbone
72e6769d68 Removed onPlayerCommand (PLAYER_COMMAND) (and fixed Fillr to stop using it) 2011-02-26 19:09:57 +00:00
Dinnerbone
1dac795bf1 No longer supporting the TSLPC (inb4pitchforks) 2011-02-25 22:01:21 +00:00
Dinnerbone
a647006042 onPluginEnabled after plugin is enabled + same for onPluginDisabled 2011-02-25 12:54:08 +00: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
sk89q
e529e44d86 Lowered the priority of the old command handler event because a number of plugins were using this event incorrectly. A new event, the command preprocesser event, has replaced the previous function of the original command event. 2011-02-19 17:47:49 -08: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
346de2a934 ... Supporting the plugins which really shouldn't be doing what they're doing. Don't put crap in the constructor! 2011-02-20 00:43:06 +00:00
Dinnerbone
1a2c154145 Removed TSLPC (That Stupidly Long Plugin Constructor) 2011-02-20 00:13:25 +00:00
Dinnerbone
eb7d3710e1 Fixed event priorities 2011-02-19 20:43:35 +00:00
Dinnerbone
361d8f2b9f Shifting damage events per http://forums.bukkit.org/threads/oops-i-broke-your-plugins.599/#post-67424 (This breaks stuff!) 2011-02-19 17:08:14 +00:00
ss2man44
93f6e5191e Added CREATURE_SPAWN event 2011-02-16 22:28:44 -05:00
EvilSeph
c2020def62 Exposes recently added PLAYER_PICKUP_ITEM event. 2011-02-12 07:58:03 -05:00
culturespy
01ca4cc35b Added EXPLOSION_PRIMED event. 2011-02-12 02:47:27 -05:00
Timberjaw
3cc8c0dae0 Added SIGN_CHANGE event. 2011-02-11 20:34:02 -05:00
Dinnerbone
2db95ba0b9 Added event for when a world is saved (EyvindRM) 2011-02-09 12:57:48 +00:00
Alexander Hesse
6ba990ecfd Added Sneaking Event 2011-02-08 17:09:11 +01:00
Dinnerbone
634daae4f6 Just breaking some redstone plugins, don't mind me 2011-02-08 12:53:30 +00:00
Dinnerbone
46bc44ed5f New event WORLD_LOADED 2011-02-08 12:06:34 +00:00
Raphfrk
2d43dcc125 Scheduler 2011-02-07 01:06:20 +01:00
Forsaken
0b998a2fe4 Added PlayerKick (setReason, setLeaveMessage, setCancelled) and PlayerRespawn (setLocation) 2011-02-06 12:13:18 +01:00
Meaglin
af9d2b86c3 Interface for BlockBreakEvent 2011-02-01 18:07:16 +01:00
Dinnerbone
1dba6e8874 Added PLAYER_DROP_ITEM 2011-02-01 10:45:39 +00:00
Dinnerbone
630f9a89d6 Added VEHICLE_UPDATE 2011-02-01 10:18:27 +00:00
Dinnerbone
000d2a300f Added PLAYER_ITEM_HELD event 2011-01-31 01:34:23 +00:00
Dinnerbone
99bc01b602 Added INVENTORY_OPEN as a player event 2011-01-30 22:06:17 +00:00
stevenh
3b9f5f5e6c Added new EventExecutor, missed in last commit 2011-01-29 21:18:47 +00:00
stevenh
47af4404bf Renamed IExecutor -> CommandExecutor and fixed SERVER_COMMAND doc 2011-01-29 21:17:36 +00:00
stevenh
a984e73ac1 Finalising merge with head 2011-01-29 17:28:31 +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
Dinnerbone
99549ef8cc clearPlugins() and clearCommands() for PluginManager and CommandMap respectively 2011-01-28 14:18:24 +00:00
Taylor Kelly
54059e34bb onDisable on stop - stephank 2011-01-27 16:15:24 -05:00