geforkt von Mirrors/Paper
Bukkit Timers, now with 100% less github-services branch.
Dieser Commit ist enthalten in:
Ursprung
e5d7a46029
Commit
e91d523642
@ -124,6 +124,9 @@ implements ICommandListener, Runnable {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.info("Starting timer event scheduler");
|
||||||
|
server.getScheduler().start();
|
||||||
|
|
||||||
e();
|
e();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -147,6 +150,10 @@ 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,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;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren