From e73b10cf9ef8f3740072819066ee0e913be1d76f Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Wed, 22 Jun 2011 18:33:23 +0100 Subject: [PATCH] Fire WorldLoad events on default worlds for plugins who load:startup --- src/main/java/net/minecraft/server/MinecraftServer.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java index 00cd628cd8..2cba82decb 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(); }