give

abstract fun give(player: Player, resourceId: Key, amount: Double): Boolean(source)

Gives amount of the resourceId, but not above ResourceState.max.

Return

true if the change was requested, false if it is unsupported or the player's data isn't loaded. true doesn't guarantee the change: another plugin may cancel it, and Mimic can't detect that.

Parameters

amount

Non-negative amount of the resource.

Throws

if amount is negative or not finite.