From c68ddf76c03b24d540ba00653fd4f51b264e25e0 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 8 Feb 2011 12:50:36 +0000 Subject: [PATCH] Implemented WORLD_LOADED By: Dinnerbone --- .../src/main/java/org/bukkit/craftbukkit/CraftServer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 26e083e502..a034bae108 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -22,6 +22,8 @@ import org.bukkit.plugin.SimplePluginManager; import org.bukkit.plugin.java.JavaPluginLoader; import org.bukkit.scheduler.BukkitScheduler; import org.bukkit.craftbukkit.scheduler.CraftScheduler; +import org.bukkit.event.Event.Type; +import org.bukkit.event.world.WorldEvent; public final class CraftServer implements Server { private final String serverName = "Craftbukkit"; @@ -255,5 +257,7 @@ public final class CraftServer implements Server { protected void addWorld(World world) { worlds.put(world.getName().toLowerCase(), world); + + pluginManager.callEvent(new WorldEvent(Type.WORLD_LOADED, world)); } }