mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2025-02-21 02:31:37 +01:00
Send server is stopping
This commit is contained in:
parent
272052f53d
commit
f98a4afdb9
@ -69,6 +69,10 @@ public class DiscordSRVFabricBootstrap implements DedicatedServerModInitializer,
|
||||
lifecycleManager.loadAndEnable(() -> this.discordSRV = new FabricDiscordSRV(this));
|
||||
this.discordSRV.runServerStarted();
|
||||
});
|
||||
|
||||
ServerLifecycleEvents.SERVER_STOPPING.register(minecraftServer -> {
|
||||
this.discordSRV.runDisable();
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user