What's New in Version 1.2.0 See changelog
Released
Version 1.2.0
What's New:
-
Addition of Configuration Initialization on Server Start:
- Issue: When reloading the plugin, configuration values were not correctly loaded, causing XP values to remain at 0 even though the configuration was correctly set.
-
Solution: We added the OnServerInitialized() method that calls LoadDefaultConfig() when the server starts, ensuring that configuration settings are correctly loaded and applied.
-
Extended Debugging Output:
-
Issue: There was uncertainty about why certain XP values remained at 0 despite being correctly set in the configuration.
-
Solution: We added extensive debugging output in the methods responsible for assigning XP, such as OnDispenserGather() and AddResourceXP(). This debugging output checks and logs XP values and levels before and after they are updated, making it easier to identify issues.
-
-
Improved Initialization of Players and Resources
-
Issue: Players and resources were not always properly initialized, leading to inconsistencies in the XP system.
-
Solution: We improved the initialization process by ensuring that each player is correctly initialized when they join the server, including setting their starting levels and XP values.
-
-
Configuration of XP Values:
-
Solution: The configuration settings have been extended, and we ensured that values are correctly loaded from the configuration files. This prevents the use of incorrect or default values that do not match the intended configuration.
-
-
User-Friendly HUD Upgrades:
-
Solution: The HUD (Head-Up Display) has been improved to clearly display current XP, level, and the XP required for the next level, making it easier for players to track their progress in gathering resources.
-
Enhanced Features:
- Better Configuration Management: The plugin now correctly loads configuration on server start, ensuring consistent behavior.
- Debugging Tools: More extensive logging to quickly identify and resolve issues.
- Robust Initialization: Players and resources are reliably and consistently initialized.
Resolved Issues:
- Configuration settings not being applied when the plugin was loaded.
- Incorrect XP values due to missing configuration initialization.
With these improvements and fixes, version 1.2.0 of the ResourceLeveling plugin offers a more reliable and user-friendly experience for both server administrators and players.