Mastering the Time System

APITimeTutorial
TL;DR

Access time via World.getTimeOfDay() (0-24000 ticks). Dawn is 0, noon 6000, dusk 12000, midnight 18000. Use WorldTimeEvent for time-based triggers. Modify time with setTimeOfDay() but respect other plugins' expectations.

Comments

No comments yet. Be the first to share your thoughts!