takeLevels

open fun takeLevels(lvlAmount: Int)(source)

Decreases the player level by a specified amount.

Never use negative amount to increase player level, use giveLevels instead.

Parameters

lvlAmount

Amount of levels to take away

Throws

If player-related object not exists