1
0
mirror of https://github.com/Suiranoil/SkinRestorer.git synced 2026-01-16 04:42:12 +00:00

add OnServerStopped event

This commit is contained in:
2025-07-24 03:20:16 +03:00
parent 01a045541c
commit 11ecf88eb2
4 changed files with 32 additions and 0 deletions

View File

@@ -15,4 +15,10 @@ public abstract class MinecraftServerMixin {
private void onServerStarted(CallbackInfo ci) {
SkinRestorer.Events.onServerStarted((MinecraftServer) (Object) this);
}
@Inject(method = "runServer",
at = @At(value = "INVOKE", target = "Lnet/minecraft/server/MinecraftServer;onServerExit()V"))
private void onServerStopped(CallbackInfo ci) {
SkinRestorer.Events.onServerStopped((MinecraftServer) (Object) this);
}
}