Achievement

class Achievement(id: String, val name: String, val description: String, val expAwarded: Int = 10, val rarity: AchievementRarity = AchievementRarity.BASIC) : Identified(source)

A single achievement that can be awarded to players

Constructors

Link copied to clipboard
constructor(id: String, name: String, description: String, expAwarded: Int = 10, rarity: AchievementRarity = AchievementRarity.BASIC)

Functions

Link copied to clipboard

Sends an award message to player

Link copied to clipboard
fun buildItem(player: MacrocosmPlayer): ItemStack

Builds a display item for this achievement

Properties

Link copied to clipboard

Description of this achievement

Link copied to clipboard
val expAwarded: Int = 10

Amount of EXP that will be awarded for this achievement

Link copied to clipboard
open override val id: Identifier
Link copied to clipboard

Display name of this achievement

Link copied to clipboard

Rarity of this achievement