Files
jgl_sunlit_patch/kubejs/server_scripts/playerEvents/seasonSync.js
T
2026-07-31 10:34:32 +09:00

10 lines
315 B
JavaScript

const ModConfig = Java.loadClass("sereneseasons.init.ModConfig")
const data = { subSeasonDuration: 10 }
ServerEvents.loaded(event => {
data.subSeasonDuration = ModConfig.seasons.subSeasonDuration;
});
PlayerEvents.loggedIn(event => {
event.player.sendData('society.synchronize_season_duration', data);
});