Clone this wiki locally
Table of Contents
Just add another class underneath classes: inside of the classes.yml in the BattleArena folder.
items and enchant sections are both optional.
Players will still need permissions to use see Class Perms
classes: myNewClassName: items: - diamond_chest: 1 - diamond_sword: sharp:2 knockback:1 1 - bread: 3 enchants: - speed:2
This allows players to click on a sign and receive a class. This only works for players inside an arena so there is no fear of players getting classes in the world.
To create a class sign simply add a sign with the first line as the name of the class.
- line1: Gladiator
- * Gladiator
Chooses which stage/transition they should get the class in, onSpawn is usually a good place. Then put in the field giveClass underneath options: inside of the config.yml in the BattleArena folder.
onSpawn: options:  giveClass: default: gladiator
Say you wanted team1 to be all gladiators, team2 to be all archers, and any other team to be monks. under giveClass. put team1: gladiator, team2: archer, and default: monk
onSpawn: options:  giveClass: team1: gladiator team2: archer default: monk
To use heroes as classes you will first need to add the items and enchants you want to give for each Heroes class into the BattleArena/classes.yml(see this for more info https://github.com/alkarinv/BattleArena/wiki/Classsetup#wiki-Creating_new_classes).
Once you have created your classes you can specify them like normal through the giveClass.
onSpawn: options:  giveClass: default: Warrior
There is also a new class used only used for Heroes chosenClass which will allow players to receive the items configured in the BattleArena/classes.yml for their already chosen class.
onSpawn: options:  giveClass: default: chosenClass