//Priority: 1
/**
  
  █▀▄▀█ █▀█ █▄░█ █░█ █▀▄▀█ █▀▀ █▄░█ ▀█▀ ▄▀█ █░░   █▀▀ ▀▄▀ █▀█ █▀▀ █▀█ █ █▀▀ █▄░█ █▀▀ █▀▀
  █░▀░█ █▄█ █░▀█ █▄█ █░▀░█ ██▄ █░▀█ ░█░ █▀█ █▄▄   ██▄ █░█ █▀▀ ██▄ █▀▄ █ ██▄ █░▀█ █▄▄ ██▄

  ☻/  * @file JEI script to hide Items
  /▌  * @copyright KnightDexx's Modded Minecraft World | ModernGamingWorld | GeekTechMedia
  /\

*/
ServerEvents.loaded((event) => {

  let gamerules = [{
    rule: 'doImmediateRespawn',
    value: 'true'
  }]

  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
    }
  })

})