giveExp

open fun giveExp(player: Player, @KeyPattern.Value trackId: String, amount: Double): Boolean(source)

Gives exactly amount experience on the trackId: skip boosters, party sharing and other in-game bonuses if your plugin's API allows it. Keep the plugin's level-up rewards and messages.

Return

true if the change was requested, false if it is unsupported for this player and trackId, or the player's data isn't loaded. Return true even if the plugin may cancel the change through its events.

Parameters

amount

Non-negative amount of experience.