Which player doesn't matter for my reasons, a player is in bed, the variable is set in another function to start the look for the 200 tick delay.
daTimer2 is set to daTimer by the same function as playerisinbed. Should I reset daTimer every now and then?
I just need to know when 200 ticks(10 seconds) have elapsed. And since the servertickevent runs every tick, either I need to reset daTimer constantly, or just let it count up. I've been looking at bukkit's source to try to see if there was a way to make my own scheduler. I'm surprised forge has never added a scheduler, to run code at a certain delay.
I'm trying to port my SinglePlayerSleep plugin over to forge, it will run serverside only, adding nothing if used on clientside.