@boem312/minecraft-server
Version:
A pure JS library to create Minecraft Java 1.16.3 servers
11 lines (10 loc) • 352 B
JavaScript
module.exports = {
shutdown() {
if (this.p.state !== 'offline')
this.p.stateHandler.updateState.close.call(this);
for (const interval of this.p.intervals) clearInterval(interval);
for (const timeout of this.p.timeouts) clearInterval(timeout);
this.p.intervals = [];
this.p.timeouts = [];
}
}