Skip to main content
TimedWings provides a simple and extensible developer API, allowing you to manage player flight time, check flying status, and integrate with your own plugins.

โœ… Getting the Plugin Instance

Access the main plugin instance via:

๐Ÿง Accessing Player Flight Data

To access or modify a playerโ€™s flight data, use the PlayerDataManager:

๐Ÿง  PlayerData API

The PlayerData class represents a playerโ€™s flight status and timers.

๐Ÿ“Œ Getters

โœ๏ธ Setters / Modifiers


๐Ÿ’พ Saving Data

You can manually trigger a save of the playerโ€™s data:
This uses the active StorageProvider (e.g., YAML, MySQL, etc.).

๐Ÿ› ๏ธ Example: Give 10 minutes of flight


๐Ÿ” Example: Remove 30 seconds of flight


๐Ÿ”„ Example: Reset Used Time


๐Ÿ’ก Notes

  • Time is always handled in seconds.
  • save() should be called after making changes if you want to persist them immediately.
  • If the storage system supports auto-saving or event-based saving, you may not need to call save() manually.