init

fun init(plugin: Plugin)

Resolves and loads the version-specific PacketHub implementation for the running server.

Supported ranges: 1.20.4–1.20.6, 1.20.6–1.21.4, 1.21.4–1.21.11, 1.21.11–1.22. Logs a warning if the version is unsupported or the class cannot be instantiated.

Parameters

plugin

The owning plugin used for logging.