Commit Graph

246 Commits

Author SHA1 Message Date
Dinnerbone
6d51a64bc7 Added ChunkPopulateEvent, new "newChunk" property on ChunkLoadEvent 2011-06-16 19:32:14 +01:00
EvilSeph
c5fc81a42d Added ItemSpawnEvent. Thanks myers! 2011-06-11 00:26:18 -04:00
EvilSeph
d6f3999b70 Added EntityTame event. Thanks halvors! 2011-06-09 04:03:53 -04:00
Stephen
92f8f6aba8 Added various 1.6 portal events. 2011-06-08 18:30:48 -04:00
Rigby
826bcf1d4a Implemented WorldUnloadEvent and unloadWorld(). 2011-06-07 02:51:31 -04:00
Dinnerbone
bca3b8d0c5 Added custom world generator API 2011-06-06 18:37:20 +01:00
stevenh
127e1adc4c Added check and catch for errors during cancelTasks and unregister of services during plugin disable 2011-05-22 22:18:05 +01:00
EvilSeph
5709858cf0 Reverted commits that broke plugin class loading, pending investigation. 2011-05-15 19:20:30 -04:00
Erik Broes
c4d444ce98 Whitespace + general cleanup 2011-05-15 14:06:02 +02:00
sk89q
4e0d676b2c 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
2bdb275663 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
29d16f43af 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 1c4bde50bc 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
1c4bde50bc Added @DontExport annotation for telling Bukkit not to share a class with another plugin 2011-05-12 23:09:24 +01:00
Dinnerbone
5e82e3b3ea Line endings. Don't make me yell at you. 2011-05-12 22:28:09 +01:00
sk89q
2406a4496d Added dispenser event. 2011-05-08 02:57:26 -07:00
EvilSeph
bb7b91b4d4 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
67f1d7b041 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
EvilSeph
4e3d770ad3 Added PlayerInteractEntityEvent which fires when a player right clicks an entity. Thanks fullwall! 2011-05-02 04:31:42 -04:00
Raphfrk
4475e0f160 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
EvilSeph
f0d14d156e Added SnowFormEvent. Thanks aPunch! 2011-05-02 01:46:55 -04:00
EvilSeph
b0e81bcc7b Added a lot of events relating to weather, including those for entities. Thanks wizjany! 2011-04-25 19:46:10 -04:00
Stephen
a6c61782ac Added painting events (thanks verrier and tanelsuurhans) 2011-04-25 23:25:55 +02:00
Erik Broes
d94fce59ff Updated README for line-ending demands, also fixed line-endigs. 2011-04-25 13:24:32 +02:00
sk89q
a7724a5138 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
sk89q
ef5d72ec02 Added bed events and methods. 2011-04-07 11:26:33 -07:00
sk89q
b2dd16984f Added a check for when the old and new data folders are the same. 2011-04-03 23:05:25 -07:00
Tahg
1723111b36 added some API for entities 2011-04-04 01:14:26 -04:00
Erik Broes
78c87ee4bf Pluginnames can also space out now 2011-04-03 19:17:18 +02:00
Erik Broes
ead1f771c9 Forgot we have windows to support as well 2011-04-03 16:42:33 +02:00
Erik Broes
0de380f51c A plugin's name can now only contain: [A-Za-z0-9()\[\]{}_.-] 2011-04-03 16:26:27 +02:00
Erik Broes
9b1c7348bd 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
Robert Sargant
49be099147 Added VEHICLE_DESTROY event 2011-04-02 17:10:36 +02:00
William Bowers
c105f68327 Added the SPAWN_CHANGE event, which occurs when a world's spawn is changed.
This event includes the world who's spawn changed and its previous spawn location.

To listen for this event:
  PluginManager pm = getServer().getPluginManager();
  YourWorldListener worldListener = new YourWorldListener(this);
  pm.registerEvent(Event.Type.SPAWN_CHANGE, worldListener, Priority.Normal, this);

To use this event:
  public class YourWorldListener extends WorldListener {
      @Override
      public void onSpawnChange(SpawnChangeEvent event) {
          World world = event.getWorld();
          Location previousLocation = event.getPreviousLocation();
      }
  }
2011-04-02 17:00:29 +02:00
Dinnerbone
3fb7d7e240 Added {NAME} replacement in database location 2011-04-01 16:51:33 +01:00
Dinnerbone
8ba69aaf28 DDL generation methods 2011-04-01 16:09:23 +01:00
Dinnerbone
cf6b46bda9 Implemented ebeans 2011-04-01 16:09:23 +01:00
Erik Broes
d9c309d82c Fix IIOB error when dealing with an incomplete YAML && Nagging 2011-04-01 10:24:48 +02:00
Erik Broes
faa15bc068 Catch YAML exceptions as InvalidPluginExceptions 2011-04-01 09:59:24 +02:00
Dinnerbone
fe2c6c7b1c 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
lukegb
96305c2bc2 Seal-fail workaround 2011-03-31 14:16:13 +00:00
Erik Broes
d208614fcc Just NAG once, to be nice 2011-03-30 00:38:46 +02:00
Erik Broes
f9767d4025 Add 'NagException' to disclose plugin fail 2011-03-30 00:25:11 +02:00
Dinnerbone
9c63b27755 RegisterInterface reload bug fix 2011-03-29 21:29:46 +01:00
Erik Broes
325fbdc01a 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
e07a997517 Fix some wrong event creations after previous change 2011-03-26 23:19:50 +01:00
Erik Broes
158906c132 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
aa0732519c Added player join event 2011-03-26 15:32:29 +01:00
Raphfrk
5aa266fd8c 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
49976e8ef3 Add PLAYER_INTERACT, remove BLOCK_RIGHT_CLICK, BLOCK_INTERACT and PLAYER_ITEM 2011-03-23 16:58:43 +01:00
Erik Broes
ae47996105 Added PlayerBucket events 2011-03-23 16:58:43 +01:00