How the World Reset Time Works
The reset time in the ResourceWorldResetter plugin is based on the server’s local system time, meaning it follows the timezone of the server's operating system. Here's how it works:
Local Time Fetching:
The plugin uses the Java method
LocalDateTime.now()
, which captures the current time according to the server’s system clock and timezone.This means the reset will happen according to whatever timezone the Minecraft server’s physical or virtual machine is set to.
Reset Scheduling:
When you use the
/setrestarttime <hour>
command to schedule a world reset, the plugin will compare this time with the server’s current local time.For example, if the server is set to UTC, the reset will happen according to UTC. If the server is set to PST (Pacific Standard Time), the reset will follow PST.
Controlling the Reset Time:
If you need the world reset to happen according to a specific timezone, you'll need to:
Adjust the server's timezone settings on the machine/host.
Important Note:
By default, the reset time is directly tied to the server’s local time (the machine’s system timezone). Make sure the server’s timezone matches the one you want your resets to follow.
Last updated