diff options
author | Aikar <aikar@aikar.co> | 2014-12-03 14:35:33 -0500 |
---|---|---|
committer | Aikar <aikar@aikar.co> | 2014-12-03 14:35:33 -0500 |
commit | 64492523a761fb37d2b73f4aad8b8041f7a30d83 (patch) | |
tree | e09e4e236f75aa38962c8f953af21ddac0d17d7b /src/main/java | |
parent | 4c02ffcaf34bb6b350b1a39ed9bac1e6b3285fe2 (diff) | |
download | craftbukkit-64492523a761fb37d2b73f4aad8b8041f7a30d83.tar craftbukkit-64492523a761fb37d2b73f4aad8b8041f7a30d83.tar.gz craftbukkit-64492523a761fb37d2b73f4aad8b8041f7a30d83.tar.lz craftbukkit-64492523a761fb37d2b73f4aad8b8041f7a30d83.tar.xz craftbukkit-64492523a761fb37d2b73f4aad8b8041f7a30d83.zip |
Move WorldSaveEvent to proper location
calling CraftWorld.save() currently does not call WorldSaveEvent, and WorldSaveEvent could fire on worlds that have saving disabled.
New location will always fire during a world save and only during an actual save.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftServer.java | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index fa1fe206..64b2961b 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -935,8 +935,6 @@ public final class CraftServer implements Server { try { handle.save(true, null); handle.saveLevel(); - WorldSaveEvent event = new WorldSaveEvent(handle.getWorld()); - getPluginManager().callEvent(event); } catch (ExceptionWorldConflict ex) { getLogger().log(Level.SEVERE, null, ex); } |