diff options
author | sk89q <the.sk89q@gmail.com> | 2011-05-02 11:31:02 -0700 |
---|---|---|
committer | sk89q <the.sk89q@gmail.com> | 2011-05-02 11:31:33 -0700 |
commit | 93708cb7485c259cb03031fb6bba1144c4f5415f (patch) | |
tree | ee370dcd73cfda5968974cdb6171424f08cb5cec /src/main/java/org | |
parent | bdcee9025c1bb91158b0cabfb4985e53f356cf27 (diff) | |
download | craftbukkit-93708cb7485c259cb03031fb6bba1144c4f5415f.tar craftbukkit-93708cb7485c259cb03031fb6bba1144c4f5415f.tar.gz craftbukkit-93708cb7485c259cb03031fb6bba1144c4f5415f.tar.lz craftbukkit-93708cb7485c259cb03031fb6bba1144c4f5415f.tar.xz craftbukkit-93708cb7485c259cb03031fb6bba1144c4f5415f.zip |
Added services manager framework.
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftServer.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 5b71a844..8632efad 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -39,7 +39,9 @@ import net.minecraft.server.ICommandListener; import org.bukkit.*; import org.bukkit.plugin.Plugin; import org.bukkit.plugin.PluginManager; +import org.bukkit.plugin.ServicesManager; import org.bukkit.plugin.SimplePluginManager; +import org.bukkit.plugin.SimpleServicesManager; import org.bukkit.plugin.java.JavaPluginLoader; import org.bukkit.scheduler.BukkitScheduler; import org.bukkit.craftbukkit.inventory.CraftFurnaceRecipe; @@ -56,6 +58,7 @@ public final class CraftServer implements Server { private final String serverVersion; private final String protocolVersion = "1.5_02"; private final PluginManager pluginManager = new SimplePluginManager(this); + private final ServicesManager servicesManager = new SimpleServicesManager(); private final BukkitScheduler scheduler = new CraftScheduler(this); private final CommandMap commandMap = new SimpleCommandMap(this); protected final MinecraftServer console; @@ -244,6 +247,10 @@ public final class CraftServer implements Server { return scheduler; } + public ServicesManager getServicesManager() { + return servicesManager; + } + public List<World> getWorlds() { return new ArrayList<World>(worlds.values()); } |