Skip to content
alkarinv edited this page Sep 13, 2012 · 1 revision

Default config

The current default config.yml

Setting up classes

Just add another class underneath classes:.

items and enchant sections are both optional. Example

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

All stages and transitions can have any of the 'options'.

Match Stages

A match is composed of 5 different stages.

  1. onOpen: For events this happens when you open the event. For matches when players get matched from the queue.
  2. onPrestart: time between onOpen and onStart.
  3. onStart: Match starts
  4. onVictory: One player or team is victorious
  5. onComplete: match finished

Match Transitions

During the match many different transitions can happen

  1. onSpawn: Happens on teleport or on player Respawn ( if respawn is set within onDeath)
  2. onDeath: What happens when a player dies
  3. onJoin: player joining a match
  4. onEnter: Happens when the player first enters the arena. right after before they are teleported in.
  5. onLeave: Happens when the player leaves the arena(aka if they win(after onComplete), or if they die(and dont respawn) )

Valid options

valid options for everything but preReqs (which has a special set of options)

  • clearInventory,
  • giveItems: needs a list under items
  • teleportIn
  • teleportOut
  • pvpon or pvpoff
  • health=
  • hunger=
  • money=
  • experience=
  • teamPvpOn : if not specified defaults to off
  • respawn:
  • enchants: needs a list of enchants under enchants
  • deEnchant: get rid of all potion effects on player
  • disguiseAll=: disguise all players with the given value
  • undisguise: undisguise players
  • storeExperience/restoreExperience: store/restore Experience
  • storeItems/restoreItems : store/restore items

to be completed later

Clone this wiki locally