Commit Graph

14 Commits

Author SHA1 Message Date
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
Erik Broes
c4d444ce98 Whitespace + general cleanup 2011-05-15 14:06:02 +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
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
Erik Broes
6dfe133f17 Force compile-time failures for the subtle changes done in the API 2011-03-30 00:25:59 +02:00
Dinnerbone
4272e51e00 Line endings, consistency! 2011-03-27 21:27:27 +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
Erik Broes
a6a128197c Renamed many events/constants to be not past tense <-- Major Break says: "HI" 2011-03-23 16:58:26 +01:00
Dinnerbone
be485d43ee Added event for when a world is saved (EyvindRM) 2011-02-09 12:57:48 +00:00
Dinnerbone
a435cae101 New event WORLD_LOADED 2011-02-08 12:06:34 +00:00
Erik Broes
bbd7fffaac Events should be present tense, not paste tense. 2011-01-15 21:26:42 +01:00
Dinnerbone
05499e1f56 Javadoc 2011-01-04 22:05:53 +00:00
Dinnerbone
89cba41180 Added Chunk events in new World category 2011-01-04 14:08:56 +00:00