Classes allow the player to pick a specific class at the beginning of the game which gives them special abilities. Classes can be used on any map type, however care must be taken to balance them properly. Players can then change their class ingame with the /class
command.
Classes Element | Description | |
---|---|---|
<classes> </classes>
|
A node containing a single class or a group of classes. | |
Sub-elements | Value/Children | |
<class> </class>
|
A single player class. | Class Sub-elements |
Attribute | Description | Value | Default |
---|---|---|---|
name
|
Required The classes name, must be a unique. | String | |
description
|
Description shown in the
/classes
command.
|
String | |
longdescription
|
Description shown in class picker menu. | String | |
icon
|
Icon shown in the class picker menu. | Single Material Pattern | |
family
|
Required "group" of classes (ghost squadron is "ghost"). | Class Family Name | |
sticky
|
If set to
true
players can't change the class mid game, instead they have to rejoin.
|
true/false | false |
default
|
Specify if the class is the default class for new players.
One class must be set as the default. |
true/false | false |
restrict
|
If set to
true
only OP's can use this class.
|
true/false | false |
Element | Description | Type |
---|---|---|
<kit>
|
The kit given to players using this class. | Kits |
Example
<classes family="ghost" sticky="true">
<class name="Demon" default="true" description="Smoke and Fire!" icon="fireball">
<kit>
<potion duration="oo" amplifier="2" ambient="true">damage resistance</potion>
<potion duration="oo" amplifier="1" ambient="true">speed</potion>
<item slot="8" amount="16" material="cooked beef"/>
<item slot="1" amount="5" name="`3Grenade" grenade="true" material="ender pearl"/>
</kit>
</class>
</classes>