Skip to content

Added advanced flying data saving, bug fixes and optimization fixes#4

Merged
Knabbiii merged 3 commits into
Knabbiii:mainfrom
SchlangeGoto:main
Feb 3, 2026
Merged

Added advanced flying data saving, bug fixes and optimization fixes#4
Knabbiii merged 3 commits into
Knabbiii:mainfrom
SchlangeGoto:main

Conversation

@SchlangeGoto

Copy link
Copy Markdown
Contributor

Added DataManager class for managing saving/loading and en/decoding
Added methodes in SpawnBoostListener for managing saving and loading of flying data
Optimized all Lists by changing them to Sets and not saving the player object and only the uuids
Added validation to the onEnable methode so it doesnt happend that two listeners get created
Added logging of all kinds of information for better debuging and plugin usage

- Implement `DataManager` to load and save flying, boosted states, and chestplate data.
- Integrate data persistence with `SpawnBoostListener` to preserve player states across server restarts.
- Optimize player tracking by switching from lists to sets and from saving the Player objects to UUIDs.

Signed-off-by: SchlangeGoto <kkazimir@protonmail.com>
…t, file saving bug fixes

- Fixed bug were flying_players.json file would not be created
- Refactor file handling and ensure directory creation during data save operations.
- Add detailed logging for loading and saving player flight and boost data.
- Prevent duplicate save attempts by introducing a save scheduling mechanism.

Signed-off-by: SchlangeGoto <kkazimir@protonmail.com>
… multiple listeners got created

Signed-off-by: SchlangeGoto <kkazimir@protonmail.com>
@Knabbiii

Knabbiii commented Feb 2, 2026

Copy link
Copy Markdown
Owner

Did you test all functionality, including old Bugs like:

  1. Flying in the Nether, when entered at Spawn?
  2. Not working Fly Manager Mods, because of setting fly state to false?
  3. Bedrock Compatibility
  4. Simulate Server crashes / leaving while flying etc.

If not, I kindly ask you to do that, so we are not uploaded untested and potentially buggy code!

@SchlangeGoto

Copy link
Copy Markdown
Contributor Author

I tested everything were I changed functionality

  1. Bedrock compatibility
  2. Leaving server while flying and restarting/crashing server

I did not Test anything else because I did not change any functionality or code there

@Knabbiii
Knabbiii merged commit fa3ed88 into Knabbiii:main Feb 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants