If you have problems with it, please submit it in Discussion with the error code, or on github.
Plugin Introduction
Plugin Name: Xyfly
Plugin Description: Xyfly is a Minecraft server plugin designed to manage flight time for players. It allows server administrators to set flight time limits for players and provides real-time updates on the remaining flight time while players are flying. The plugin supports multiple languages, allowing administrators to choose different language files through the configuration file to better suit servers in different languages.
Implemented Features
1. Flight Time Management:
- Administrators can use the command `/xyfly settime <time(seconds)>` to set flight time for a specified player.
- Players can use the command `/xyfly on` to enable flight mode, and the flight time will count down according to the settings in the configuration file.
- Players can use the command `/xyfly off` to disable flight mode, pausing the flight time.
2. Flight Time Query:
- Administrators and players can use the command `/xyfly gettime` to query the remaining flight time of a specified player.
3. Configuration File Management:
- The plugin generates a default `config.yml` configuration file upon first startup.
- Administrators can select the language and customize the flight time messages through the configuration file.
- Using the command `/xyfly reload` reloads the configuration and language files, ensuring that changes to the configuration take effect immediately.
4. Multi-language Support:
- The plugin supports multiple languages, allowing administrators to select different language files through the `language` option in `config.yml`.
- The plugin provides default English (en.yml) and Chinese (zh.yml) language files, and administrators can add other language files as needed.
5. Event Listener:
- The plugin listens for changes in players' flight status, providing real-time updates and displaying the remaining flight time.
- The plugin listens for player quit events to ensure that flight tasks are stopped and flight time data is saved when players leave the server.
Future Feature Plans
1. More Language Support:
- Add more language files to support a wider range of languages to meet the needs of different server administrators.
2. Flight Time Reward System:
- Add a flight time reward system where players can earn additional flight time by completing certain tasks or achieving certain milestones.
3. GUI Interface:
- Provide a graphical user interface (GUI) to allow administrators and players to manage and view flight time more intuitively.
4. Flight Time Purchase System:
- Add a flight time purchase system where players can buy additional flight time using in-game currency or other resources.
5. Flight Time Logging:
- Add logging for flight time changes, enabling administrators to view and manage flight time changes for players.
6. Advanced Permission Management:
- Add more granular permission management, allowing administrators to set different flight time permissions for different groups of players.
7. API Interface:
- Provide an API interface for the plugin to facilitate integration and extension with other plugins.
With these features, the Xyfly plugin will offer more flexible and rich flight time management functions for Minecraft servers, enhancing the gaming experience for players. If you have any questions or suggestions, feel free to reach out!