✨ yParkour v1.1 Update ✨ A major update with new features, bug fixes, and improvements! ♂️
New Features & Updates
Multiworld Support : You can now create and join parkour courses in different worlds! Teleport seamlessly to courses in any world with /yp join <courseName>.
Configurable Hologram Height : Added a new hologram-height option in config.yml to adjust the height of holograms above start, finish, and checkpoint locations (default: 1.5 blocks).
Small Font Holograms : Holograms now use a small font style for a cleaner look (e.g., "STEP HERE TO SAVE PROGRESS" is now in small font).
Admin Group Permissions : Added an admin group in config.yml with permissions for all commands, making it easier to manage access for admins.
Default Spawn Location : Added a default-spawn location in config.yml as a fallback if a course's start location isn’t set.
Version Tracking : Added a version field in config.yml to track the plugin version the config is intended for.
Bug Fixes
Checkpoint Counting Fixed ✅: Fixed an issue where the first checkpoint was counted as #0 instead of #1. Now correctly displays "Reached Checkpoint #1" when stepping on the first checkpoint.
Death Teleportation Fixed : Players are now correctly teleported to their last checkpoint on death instead of the spawn.
Hologram Font Consistency ️: Fixed an issue where holograms loaded on startup didn’t use the small font style. All holograms now consistently use the small font.
Configuration Saving ️: Resolved a type mismatch error when saving courses to courses.yml by updating ParkourCourse to use FileConfiguration instead of YamlConfiguration.
️ Improvements
Removed HolographicDisplays Dependency : Switched to using Armor Stands for holograms, removing the need for the HolographicDisplays plugin (softdepend removed from plugin.yml).
Code Cleanup : Refactored duplicated code in ParkourManager for giving parkour tools, added null checks to prevent potential NullPointerExceptions, and improved logging for better debugging.
Updated Dependencies : Ensured all dependencies in pom.xml (e.g., Adventure libraries) are up-to-date and compatible with Minecraft 1.21.
Better Course Loading : Improved course loading in DataManager to use ParkourCourse’s load method, ensuring consistency and better error handling.
Notes
Make sure to update your config.yml to include the new options (hologram-height, default-spawn, and groups.admin). Check the updated config.yml in the plugin’s resources for details.
If you’re upgrading from v1.0, your existing courses.yml should still work, but it’s recommended to back up your data before updating.