takeExp

open fun takeExp(expAmount: Double)(source)

Takes away player the amount of experience specified.

This method affects to total experience, which means that it can change both level and experience. Never use negative amount to increase exp, use giveExp instead.

Parameters

expAmount

Exp amount to take away

See also

Throws

If player-related object not exists