/day ➔ Sets the time in the world to 12:00 (Day). Only works if no time lock is active.
/night ➔ Sets the time in the world to 00:00 (Night). Only works if no time lock is active.
/sunrise ➔ Sets the time in the world to 05:00 (Sunrise). Only works if no time lock is active.
/sunset ➔ Sets the time in the world to 18:00 (Sunset). Only works if no time lock is active.
/daylock ➔ Locks the time at 12:00 (Day) so it won't change.
/nightlock ➔ Locks the time at 00:00 (Night) so it won't change.
/unlocktime ➔ Removes the time lock and allows the time to change normally.
/timestatus ➔ Displays the current status of the time lock (whether it's locked or not).
/sun ➔ Sets the weather in the world to clear.
/rain ➔ Sets the weather in the world to rain.
/thunder ➔ Sets the weather in the world to thunder.
How It Works:
Automatic Time Lock: If the time is locked (either to day or night), the plugin will automatically check every 5 seconds to reset the time to the locked value, ensuring that it doesn’t change unexpectedly.
Weather Control: The weather can be toggled between clear, rain, and thunder at any time by the admins with the /sun, /rain, and /thunder commands.
Permissions:
script.timecontrol ➔ This grants access to time-related commands (e.g., /day, /night, /daylock).
script.weathercontrol ➔ This grants access to weather-related commands (e.g., /sun, /rain, /thunder).
Note: If the player doesn’t have the correct permission, the command will not be executed.