16 Commits

Author SHA1 Message Date
Erik Broes
0ac6a0bfe6 Generic cleanup 2011-06-12 12:49:08 +02:00
Stephen
55bc828c2c Added various 1.6 portal events. 2011-06-08 18:30:48 -04:00
Rigby
4ef2edfc5b Implemented WorldUnloadEvent and unloadWorld(). 2011-06-07 02:51:31 -04:00
Dinnerbone
f784af8f3e Added custom world generator API 2011-06-06 18:37:20 +01:00
Erik Broes
992f1f2bf3 Whitespace + general cleanup 2011-05-15 14:06:02 +02:00
William Bowers
287114f8ed 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
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
6929a1830e Force compile-time failures for the subtle changes done in the API 2011-03-30 00:25:59 +02:00
Dinnerbone
32b3c77165 Line endings, consistency! 2011-03-27 21:27:27 +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
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
2db95ba0b9 Added event for when a world is saved (EyvindRM) 2011-02-09 12:57:48 +00:00
Dinnerbone
46bc44ed5f New event WORLD_LOADED 2011-02-08 12:06:34 +00:00
Erik Broes
9afcb8ecc7 Events should be present tense, not paste tense. 2011-01-15 21:26:42 +01:00
Dinnerbone
f2533d1fd7 Javadoc 2011-01-04 22:05:53 +00:00
Dinnerbone
9296dd3ca1 Added Chunk events in new World category 2011-01-04 14:08:56 +00:00