diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-06-22 18:33:23 +0100 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-06-22 18:33:23 +0100 |
commit | e73b10cf9ef8f3740072819066ee0e913be1d76f (patch) | |
tree | 206850b9f3e412a3504a504ce802868c36a1a53a /src/main/java/net/minecraft | |
parent | 7f0126a364ee8a1419424dc09ca0cfc488236373 (diff) | |
download | craftbukkit-e73b10cf9ef8f3740072819066ee0e913be1d76f.tar craftbukkit-e73b10cf9ef8f3740072819066ee0e913be1d76f.tar.gz craftbukkit-e73b10cf9ef8f3740072819066ee0e913be1d76f.tar.lz craftbukkit-e73b10cf9ef8f3740072819066ee0e913be1d76f.tar.xz craftbukkit-e73b10cf9ef8f3740072819066ee0e913be1d76f.zip |
Fire WorldLoad events on default worlds for plugins who load:startup
Diffstat (limited to 'src/main/java/net/minecraft')
-rw-r--r-- | src/main/java/net/minecraft/server/MinecraftServer.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java index 00cd628c..2cba82de 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -25,6 +25,7 @@ import org.bukkit.craftbukkit.command.ColouredConsoleSender; import org.bukkit.craftbukkit.scheduler.CraftScheduler; import org.bukkit.craftbukkit.util.ServerShutdownThread; import org.bukkit.event.world.WorldInitEvent; +import org.bukkit.event.world.WorldLoadEvent; import org.bukkit.event.world.WorldSaveEvent; import org.bukkit.generator.ChunkGenerator; import org.bukkit.plugin.PluginLoadOrder; @@ -261,6 +262,12 @@ public class MinecraftServer implements Runnable, ICommandListener { // } // CraftBukkit } + // Craftbukkit start + for (World world : worlds) { + server.getPluginManager().callEvent(new WorldLoadEvent(world.getWorld())); + } + // Craftbukkit end + this.e(); } |