has

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

Returns true if the player has at least amount of the resourceId.

Parameters

amount

Non-negative amount of the resource.

Throws

if amount is negative or not finite.