setAmount
open fun setAmount(player: Player, @KeyPattern.Value resourceId: String, amount: Double): Boolean(source)
Sets the current amount of the resourceId right away, so the next getState returns the new value. Skip this method if your plugin applies changes later.
Mimic never passes a negative value, and passes a value above ResourceState.max only when taking from an amount that is already above it. Round the value down if your plugin stores whole numbers. If your plugin has different calls for giving and taking, use the one matching the change, so its events tell them apart.
Return
true if the change was requested, false if it is unsupported for this player and resourceId, or the player's data isn't loaded. Return true even if the plugin may cancel the change through its events.