ClassSystem

interface ClassSystem(source)

System that provides methods to work with player's class.

Before implementing run an eye over all default method implementations and override all methods that work not properly for your case.

Properties

Link copied to clipboard
abstract val classes: List<String>

List of player classes.

Link copied to clipboard
open val primaryClass: String?

Primary class of the player.

Functions

Link copied to clipboard
open fun hasAllClasses(requiredClasses: List<String>): Boolean

Returns true if player has all requiredClasses.

open fun hasAllClasses(firstClass: String, vararg restClasses: String): Boolean

Returns true if player has all required classes.

Link copied to clipboard
open fun hasAnyClass(): Boolean

Returns true if player has any class.

Link copied to clipboard
open fun hasAnyOfClasses(requiredClasses: List<String>): Boolean

Returns true if player has any of requiredClasses.

open fun hasAnyOfClasses(firstClass: String, vararg restClasses: String): Boolean

Returns true if player has any of required classes.

Link copied to clipboard
open fun hasClass(requiredClass: String): Boolean

Returns true if player has requiredClass.