Skip to content
alkarinv edited this page Dec 8, 2012 · 9 revisions

Table of Contents

Creating new classes

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

Example

classes:
    myNewClassName:
        items:
            - diamond_chest: 1
            - diamond_sword: sharp:2 knockback:1 1
            - bread: 3
        enchants:
            - speed:2

Default Classes

  • Gladiator
  • Archer
  • Monk

Adding a Class Sign

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.

Example

  1. line1: Gladiator
This should create a sign with
  1. * Gladiator
Only players inside a match will be able to use this sign.

Giving people default classes inside of a match/event

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.

Example

    onSpawn:
        options: []
        giveClass:
            default: gladiator

Giving different teams different classes

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

Example

    onSpawn:
        options: []
        giveClass:
            team1: gladiator
            team2: archer
            default: monk

Using Heroes classes

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.

Example

    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.

Example

    onSpawn:
        options: []
        giveClass:
            default: chosenClass