mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 04:56:50 +01:00
Revert "Bukkit Timers, now with 100% less github-services branch."
This reverts commit 7c37a03a092be7e9c3fb242b4cbe4f6644899af6.
This commit is contained in:
parent
0a15f98a2e
commit
11b114ca16
2 changed files with 0 additions and 13 deletions
|
@ -124,9 +124,6 @@ implements ICommandListener, Runnable {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a.info("Starting timer event scheduler");
|
|
||||||
server.getScheduler().start();
|
|
||||||
|
|
||||||
e();
|
e();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -150,10 +147,6 @@ implements ICommandListener, Runnable {
|
||||||
|
|
||||||
private void g() {
|
private void g() {
|
||||||
a.info("Stopping server");
|
a.info("Stopping server");
|
||||||
|
|
||||||
a.info("Starting timer event scheduler");
|
|
||||||
server.getScheduler().disable();
|
|
||||||
|
|
||||||
if (f != null) {
|
if (f != null) {
|
||||||
f.d();
|
f.d();
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,14 +21,12 @@ 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() {
|
||||||
|
@ -121,10 +119,6 @@ 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