Bukkit Timers, now with 100% less github-services branch.

By: thylordroot <organicnightmare@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2011-01-10 10:10:37 +08:00
parent cc7e6db997
commit 3b1844601a

View file

@ -21,12 +21,14 @@ public final class CraftServer implements Server {
protected final MinecraftServer console; protected final MinecraftServer console;
protected final ServerConfigurationManager server; protected final ServerConfigurationManager server;
protected CraftScheduler scheduler;
public CraftServer(MinecraftServer console, ServerConfigurationManager server) { public CraftServer(MinecraftServer console, ServerConfigurationManager server) {
this.console = console; this.console = console;
this.server = server; this.server = server;
pluginManager.RegisterInterface(JavaPluginLoader.class); pluginManager.RegisterInterface(JavaPluginLoader.class);
scheduler = new CraftScheduler(this);
} }
public void loadPlugins() { public void loadPlugins() {
@ -119,6 +121,10 @@ public final class CraftServer implements Server {
console.e.e = time; console.e.e = time;
} }
public CraftScheduler getScheduler() {
return scheduler;
}
public ServerConfigurationManager getHandle() { public ServerConfigurationManager getHandle() {
return server; return server;
} }