Fire WorldLoad events on default worlds for plugins who load:startup

This commit is contained in:
Dinnerbone 2011-06-22 18:33:23 +01:00
parent 7f0126a364
commit e73b10cf9e

View File

@ -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();
}