mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Bukkit Timers, now with 100% less github-services branch.
By: thylordroot <organicnightmare@gmail.com>
This commit is contained in:
parent
cc7e6db997
commit
3b1844601a
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue