Package net.pottercraft.ollivanders2
Class Ollivanders2Schedule
java.lang.Object
net.pottercraft.ollivanders2.Ollivanders2Schedule
- All Implemented Interfaces:
Runnable
Main scheduler for Ollivanders2.
This scheduler runs every game tick and is responsible for the recurring upkeep of all active game systems including spell projectiles, player effects, stationary spells, prophecies, and pending teleport actions. Additionally, it manages periodic tasks such as invisibility cloak visibility checks (every second) and plugin data persistence (hourly).
-
Method Summary
-
Method Details
-
run
public void run()Primary plugin scheduler that runs every game tick.Executes the following operations:
- Updates active spell projectiles via O2Spells.upkeep()
- Updates player effects
- Updates stationary spells
- Updates prophecies
- Processes pending teleport actions
- Handles invisibility cloak visibility every second
- Saves plugin data hourly
-