- Removed Messages.Trails.Price-Lore-Addon.
- Added locked-lore and purchase-loreline for trails.yml. Example below.
- locked-lore is displayed when the player doesn't have the permission to buy the trail
- purchase-lore is displayed when the player has permission.
- Both has the %price% placeholder.
- Added Messages.Trails.Selected-Lore-Addon.
- Line added for when the player has the Item selected.
- Leave it empty to disable.
- Also updated the trails.yml to use LuckPerms by default, giving you an example of how permissions works.
- /dragons reload command now also reloads trails.yml
Example of reworked trails.yml:
YAML:'1': name: '&cRedstone' permission: dragons.unlock.redstone buyPermission: dragons.use.redstone particles: REDSTONE menuItem: 'REDSTONE_BLOCK : 1' helmet: 'AIR : 0' lore: - '&eDisplays redstone particles in-game!' - '&eGives you a cosmetic redstone block helmet!' locked-lore: - '&eDisplays redstone particles in-game!' - '&eGives you a cosmetic redstone block helmet!' - ' ' - '&cYou do not have permission to use this hat!' purchase-lore: - '&eDisplays redstone particles in-game!' - '&eGives you a cosmetic redstone block helmet!' - ' ' - '&7Price: &b%price%' buyCommands: - lp user %player% permission set dragons.unlock.redstone price: 18000 slot: 11 rotateParticles: false
This is not really a problem, but a lot of users seems to have this issue, so I'm patching it. If you are running the plugin without any issues don't worry about anything in this update.
- Player kit is now always set to the default value from config at Options.Default-Dragon-Escape-Kit/Options.Default-Dragons-Kit.
- If the default kit is not set/is invalid, the next step is to get a random kit from the kit list.
- AND THEN after that, the selected player kit, if valid, is loaded.
- Values from a non-present in player data is not sent to the database, please set the correct default value in options.yml.
What changes?
Previously, if you changed the kit value in the kit file, players would still able to have the old kit reference selected, causing errors because you probably didn't change the default kit in config also.
Now we have a preventive method to always get a kit from the loaded kit list.
This is a reupload of the last update:
- Fixed renaming Leap's axe would break the kit.
- Added support for 1.21.9.
- As always, the plugin will already work on newer versions, this update just adds the new sounds, materials and stuff.
- Fixed hex color codes not working for Scoreboard titles.
- You can now change the "Price" lore of the Trails shops.
- It was the same as the Shop setting, It is now located at Messages.Trails.Price-Lore-Addon.
- If empty, the price line will be ignored and no new line will be added.
- Added a new option: Options.Game.Force-Remove-Dragons
- Some plugins can cause issues with Dragon's entities, setting this to true will remove any Dragon from the game world, regardless if it was spawned by this plugin.
