Your current kits.yml will be renamed to kits_old.yml and a new one will be generated. I'd you do test this update before releasing on a server, especially if you're going to use the dragon fight mode.
Please read the shop changelog.
- Max of Dragons and Dragon Damage for Dragons can now by set per arena via a new command
- /dragons setMaxDragons <arena> <amount>
- /dragons setDragonDamage <arena> <amount>
- If any of these values are not set the game will get the value from options.yml file.
- Added a new option: Options.Game.Dragons-Target-Timeout-Threshold
- There's a internal timer for the Dragon to target a player/location, when this time reaches 0 the Dragon will target the sky, you can now modify this value.
- The higher the number the more likely is for the Dragon to target players, default is 10000ms (10s).
- Added two options to separate the Goal & Goal Amount from Dragons to Dragons Teams
- Options.Game.Dragons-Fight-Mode.Goal-Teams
- Options.Game.Dragons-Fight-Mode.Goal-Amount-Team
- Added the following messages do translate:
- Messages.No-Game-Available-On-This-Server
- Messages.Wait-To-Try-Again
- Added the following Placeholders for End Game:
- %team_1_damage%
- %team_2_damage%
- %team_1_kills%
- %team_2_kills%
- The %kills% and %damage_dealt% Placeholder for endgame will now work even if there's no winner
- It will return the format at
Messages.End-Game-Kills-Message-Format and
- Messages.End-Game-Kills-Message-Format
Shop Update
- The kits now has two menus, they can can be in both or just in one game mode.
- When you click the shop item in game it will open the inventory of that game mode with the kits set for that game mode, if the kit is set to BOTH you can add the item for both menus.
New kits.yml options:
- dragons-slot
- dragon-escape-slot
- dragon-escape-name
- dragon-escape-rows
Example:
Kit Leaper supports both Dragons and Dragon Escape, we will set them to slot 2.
Code (Text):
Leaper:
needs-permission: false
type: "BOTH"
permission: ""
dragons-slot: 2
dragon-escape-slot: 2
price: 1000
cooldown: 4000
maxUses: 8
display-item: 'DIAMOND_AXE : 1 : name:&6Leaper'
items:
- 'DIAMOND_AXE : 1 : name:&6Leaper'
lore:
- '&7Click to gain a'
- '&7boost!'
- '&7'
- '&7Cooldown: 4s'
- '&7Dragons Max Uses: 8'
- '&7'
- '&7This kit works for both'
- '&7gamemodes!'
Now we have DragonMaster that only works for Dragons so this kit will only show when you are playing Dragons, so we need to set it to slot 4 because Leaper will be in both modes
Code (Text):
DragonMaster:
needs-permission: false
type: "DRAGONS"
permission: ""
dragons-slot: 4
price: 3500
cooldown: 6000
maxUses: 3
display-item: 'EMERALD : 1 : name:&6Dragon Master'
items:
- 'IRON_AXE : 1 : name:&6Dragon Master'
special-items:
- 'EMERALD : 1 : name:&6Dragon Bait'
lore:
- '&7Throws a item to'
- '&7distract dragons!'
- '&7'
- '&7This kit is for Dragons'
- '&7gamemode only!'
And so on, check the new kits.yml for a full example.
This may be a little overcomplicated but I didn't want to break player data by changing everything into 2 new sections and can have the same kit name and such.