diff --git a/src/net/minecraft/server/WorldServer.java b/src/net/minecraft/server/WorldServer.java index aa33b46d50..862fafecbc 100644 --- a/src/net/minecraft/server/WorldServer.java +++ b/src/net/minecraft/server/WorldServer.java @@ -4,6 +4,7 @@ package net.minecraft.server; import java.io.File; import java.util.*; import org.bukkit.craftbukkit.CraftWorld; +import org.bukkit.event.Event; public class WorldServer extends World { @@ -41,6 +42,10 @@ public class WorldServer extends World { public CraftWorld getWorld() { return world; } + + public void callHook(Event event) { + D.server.getPluginManager().callEvent(event); + } // CraftBukkit stop public void f() {