mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +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 ServerConfigurationManager server;
|
||||
protected CraftScheduler scheduler;
|
||||
|
||||
public CraftServer(MinecraftServer console, ServerConfigurationManager server) {
|
||||
this.console = console;
|
||||
this.server = server;
|
||||
|
||||
pluginManager.RegisterInterface(JavaPluginLoader.class);
|
||||
scheduler = new CraftScheduler(this);
|
||||
}
|
||||
|
||||
public void loadPlugins() {
|
||||
|
@ -118,6 +120,10 @@ public final class CraftServer implements Server {
|
|||
public void setTime(long time) {
|
||||
console.e.e = time;
|
||||
}
|
||||
|
||||
public CraftScheduler getScheduler() {
|
||||
return scheduler;
|
||||
}
|
||||
|
||||
public ServerConfigurationManager getHandle() {
|
||||
return server;
|
||||
|
|
Loading…
Reference in a new issue