This repository has been archived on 2023-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
jland-packwiz-pack/kubejs/server_scripts/gamerules/firetick.js

12 lines
481 B
JavaScript
Raw Permalink Normal View History

2023-11-02 12:32:44 -05:00
ServerEvents.loaded((event) => {
let gamerules = [{ rule: 'doFireTick', value: 'false' }];
gamerules.forEach((gamerule) => {
if (!event.server.persistentData[gamerule.rule]) {
event.server.runCommandSilent(`/gamerule ${gamerule.rule} ${gamerule.value}`);
console.log(`Default Gamerule Applied: ${gamerule.rule} = ${gamerule.value}`);
event.server.persistentData[gamerule.rule] = gamerule.value;
}
});
});