- Use get_players instead and you can't remove the is_user_connected check. More efficient.
- Create a dummy entity as timer and let it thinking. More appropriate.
- Use 'const' instead of '#define' for ACTION_BLOCK. It will caculate the value at compile time.
- Use static in run().