onSyncServer

open fun onSyncServer()

Runs on the logical server as config is about to be synced to a client. This occurs when the player is logging in and when datapacks are reloaded. This is distinct from onUpdateServer, which fires when changes are made to a config in-game, which are also synced. This is the initial sync of the entire config state.

Client-only code shouldn't be run here.

Author

fzzyhmstrs

Since

0.5.0

See also