Add support for anchors, hooks, and hook injection in patching logic with comprehensive tests.
ci / image (42.21, public) (push) Successful in 1m43s
ci / image (42.21, public) (push) Successful in 1m43s
Added onServerStarted Hook and Patch.
This commit is contained in:
1 parent
e13132c202
commit
2b94a49352
19 files changed
+972
-62
No files matched your search
+17
@@ -0,0 +1,17 @@
|
||||
package dev.overlord.zomboidforge.compat.b42.hooks;
|
||||
|
||||
import dev.overlord.zomboidforge.api.ZomboidForge;
|
||||
|
||||
/** Hooks called by patched {@code zombie.network.GameServer} code. */
|
||||
public final class ServerHooks
|
||||
{
|
||||
private ServerHooks() {}
|
||||
|
||||
/**
|
||||
* Called once on the main thread, after the world is loaded, the network port is open, and
|
||||
* RCON is initialized; directly before the main loop starts.
|
||||
*/
|
||||
public static void onServerStarted() {
|
||||
System.out.println("[ZomboidForge] Server started (ZomboidForge " + ZomboidForge.VERSION + ").");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user