mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Implemented WORLD_LOADED
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
0996ee1a6d
commit
c68ddf76c0
1 changed files with 4 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue