ATTENTION! BEFORE UPDATING, BACKUP YOUR PLUGIN FOLDER AND LET THE PLUGIN REGENERATE IT'S FILES FOR A FRESH START! THIS VERSION HAS LOTS OF CHANGES AND YOU NEED TO DO THIS TO MAKE SURE EVERYTHING RUNS SMOOTH.
Hey guys!
Been working on this update for a while now and it brings some pretty interesting things:
New 1.21.6 locator feature integration
Now, you can enable a locator on the treasure location, and customize it! This means a custom dot on the new locator bar will appear guiding players to the treasure! The color, and range from which it will be shown to players is customizable!
Created a developer API for users who want to use MysticTreasures in their plugins: API
The API features a HuntAPI class to manage hunts, events and exceptions.
Commented and re-formatted the configuration files to be more beginner friendly, with more explanations and examples
Changed how the locations on random hunts are chosen
Added more cleanup functions to make sure TreasureKeepers, and treasures do not persist after a hard crash of the server
More error and info messages are
Added mnow printed in the console for better observability
Fixed bug with the Treasure Scheduler
Fix bug with the Discord Webhook
Other, multiple bug fixes
Code cleanup and refactoring
Change to the method of choosing how to give players rewards:
Now, the format looks like this, allowing you to only choose one from the list:
Code (YAML):
# ====================================================== # AWARD METHOD - You must choose ONLY ONE from the list # ====================================================== # # Available options (case-insensitive): # # CHEST - Players get rewards directly from a loot chest - supports reward obfuscation # ALL_PLAYERS - Every player who participated gets the rewards # HIGHEST_DAMAGE - Only the player with the highest damage dealt gets rewards # TOP_X - The top X players with the most damage are rewarded # (Configure the number with 'only-reward-top-x') # - Example usage: `award-method: TOP_5` # DROP_ON_GROUND - Rewards are dropped on the ground # # NOTE: # - Only ONE award method can be active at a time. # - If you misconfigure this option, the plugin will fall back # to a safe default (CHEST). # award-method: CHEST