DaylightCycleToggle
Description:
DaylightCycleToggle is a Bukkit/Spigot plugin designed for Mohist servers that automates the doDaylightCycle game rule based on player activity. When no players are online, the plugin disables the daylight cycle to save resources and maintain the current time. When the first player joins the server, the daylight cycle is re-enabled, ensuring a dynamic and engaging gameplay experience.
Features
- Automatically toggles the
doDaylightCycle game rule based on player presence.
- Applies the game rule to all worlds on the server.
- Configurable logging to the console, allowing administrators to monitor the plugin's activity.
Configuration
The plugin includes a config.yml file with the following setting:
logToConsole: Set to true or false to enable or disable logging in the console.
How to Use
- Download the plugin and place the JAR file in your server's
plugins folder.
- Restart the server to generate the configuration file.
- Adjust the settings in
config.yml if needed.
- Enjoy an automated daylight cycle management system based on player activity!
Note: This plugin was tested on Minecraft version 1.20.1. It may work on other versions, but compatibility should be tested on each specific version.