ServerEvents.tick(event => {
    // Only check every 5 seconds
    if (event.server.tickCount % 100 !== 0) return;

    let level = event.server.getLevel('minecraft:overworld');
    let day = Math.floor(level.dayTime() / 24000);
    let pData = event.server.persistentData;

    // DAY 0 - Initial Start Message
    if (day == 0 && !pData.getBoolean('evo_start')) {
        event.server.tell(Text.aqua("[Day1] You try to remember where you are but nothing makes sense , what went wrong here , was it all just a big mistake ? why must i understand the unknown , 5 years have passed , zombies were your only worry back then and they still are?."));
        pData.putBoolean('evo_start', true);
    }

    // EVO 1 - Day 5
    if (day >= 5 && day < 10 && !pData.getBoolean('evo1')) {
        event.server.tell(Text.yellow("[Day6] multiple streams suggest that its nothing to be worried about , but they seem to have bombed an entire island saying that they were just testing newer offensive techonlogy , what in the hell is going on....."));
        pData.putBoolean('evo1', true);
    } 
    // EVO 2 - Day 10
    else if (day >= 10 && day < 20 && !pData.getBoolean('evo2')) {
        event.server.tell(Text.gold("[Day11] a lot of creatures are starting to invade cities and houses...... its starting to be obvious they cant hide it anymore......"));
        pData.putBoolean('evo2', true);
    }
    // EVO 3 - Day 20
    else if (day >= 20 && day < 30 && !pData.getBoolean('evo3')) {
        event.server.tell(Text.red("[Day21....] its starting to look helpless , only the strong can survive , a bunch of inclosed colonies were fighting some infected creatures near some city protected boarders , but ehh that doesnt really matter sense multiple F-10s were just sent to air strike the entire place....."));
        pData.putBoolean('evo3', true);
    }
    // EVO 4 - Day 30
    else if (day >= 30 && day < 70 && !pData.getBoolean('evo4')) {
        event.server.tell(Text.darkRed("[Day31.......] Everything is falling apart , nothing is the same , there is no goverment , not protection , nothing to help , whatever was standing is starting to get destroyed , as this happens the infection seems to be establishing its own comfy place........"));
        pData.putBoolean('evo4', true);
    }
    // EVO 5 - Day 70
    else if (day >= 70 && !pData.getBoolean('evo5')) {
        event.server.tell(Text.darkRed("[Day71] What ever you consider humanity has perished , your only hope is you and your team [or only you in this case?] you must build up and get ready the reckoning is soon.").bold());
        pData.putBoolean('evo5', true);

    }
      // FINAL EVO - Day 100 (Checked first so it doesn't get blocked by Day 70 rule)
    if (day >= 100 && !pData.getBoolean('evo6')) {
        event.server.tell(Text.darkRed("[Day101] Everything around you suddenly plummets into a dead silence , parasites you used to see before become the only thing you can see now , (it almost starts to feels uneasy) , WHAT IS HAPPENING!.").bold());
        pData.putBoolean('evo6', true);
    }
});
