MoneyService

class MoneyService(playerService: PlayerService, logger: Logger)

Constructors

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

Functions

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

指定したプレイヤーに所持金を追加します.

Link copied to clipboard

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

Link copied to clipboard
fun clearCache(uuid: UUID)

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

Link copied to clipboard
fun getBalance(uuid: UUID): ULong

指定したプレイヤーの所持金を取得します.

Link copied to clipboard
fun loadBalance(uuid: UUID)

所持金キャッシュを読み込みます.

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

指定したプレイヤーの所持金を設定します.

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

指定したプレイヤーから所持金を減算します.

Link copied to clipboard
fun transferBalance(from: Player, to: Player, amount: ULong): Pair<ULong, ULong>?

指定したプレイヤー同士で所持金を移動します