ExperienceService

class ExperienceService(playerService: PlayerService, logger: Logger)

Constructors

Link copied to clipboard
constructor(playerService: PlayerService, logger: Logger)

Functions

Link copied to clipboard

全てのキャッシュを初期化します

Link copied to clipboard
fun clearCache(uuid: UUID)

キャッシュを初期化します

Link copied to clipboard

現在の総経験値を取得する

Link copied to clipboard
fun getLevel(uuid: UUID): UInt

現在の UUID に保存されているレベルを返します

Link copied to clipboard
fun grantExperience(player: Player, amount: ULong): ULong?

指定したプレイヤーに経験値を付与します.

Link copied to clipboard
fun loadExperience(uuid: UUID)

現在の総経験値を読み込みます