PlayerAbilityServiceImpl

Stores player action assignments in each player's persistent data.

Constructors

Link copied to clipboard
constructor(plugin: JavaPlugin)

Creates one data key for each supported action.

constructor(keys: Map<Action, NamespacedKey>)

Functions

Link copied to clipboard
open override fun assign(player: Player, action: Action, abilityId: String)

Saves the ability ID for the player's action.

Link copied to clipboard
open override fun clear(player: Player)

Removes every Foundry action assignment from the player.

Link copied to clipboard
open override fun get(player: Player, action: Action): String?

Reads the ability ID saved for the player's action.

Link copied to clipboard
open override fun remove(player: Player, action: Action)

Removes the saved ability ID for the player's action.