β Getting the Plugin Instance
Access the main plugin instance via:π§ Accessing Player Flight Data
To access or modify a playerβs flight data, use thePlayerDataManager:
π§ PlayerData API
ThePlayerData 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: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.