onChanged

abstract fun onChanged(id: Identifier, config: Config, player: ServerPlayerEntity)

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

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

Author

fzzyhmstrs

Since

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

Parameters

id

Identifier the registered id attached to the config instance.

config

Config the config instance. This should only be read, or changes only made to transient fields/methods. Making updates to settings here will NOT be captured by the synchronization system.

player

ServerPlayerEntity the player that sent the update to the server