OnUpdateServerListener

Deprecated

Scheduled for removal 0.9.0. Will stop functioning by 0.8.0. Will not crash in 0.8.0, but will not be wired in any more. Replace with the v2 version. This may not be called in all cases, potentially skipping needed events

USE THE V2 VERSION INSTEAD

Listener for on-changed events on the server side. Will be fired for any and all updated configs, allowing inspection of other configs. For use in your own configs, consider directly implementing Config.onUpdateServer. Common code should also use this, as server configs are loaded on both sides regardless of environment (they are not technically "server" configs, they are "synced" configs).

Register with EventApi.onUpdateServer

Author

fzzyhmstrs

Since

0.5.0, deprecated 0.7.4, soft-removal by 0.8.0, removal by 0.9.0

Functions

Link copied to clipboard
abstract fun onChanged(id: Identifier, config: Config, player: ServerPlayerEntity)

Called by the onChangedServer event when the server side of a config is changed.