Package com.griefdefender.api.event
Interface BlockTransactionEvent.Buy
- All Superinterfaces:
BlockTransactionEvent,net.kyori.event.Cancellable,Event
- Enclosing interface:
BlockTransactionEvent
Fired when a player attempts to buys bonus blocks.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.griefdefender.api.event.BlockTransactionEvent
BlockTransactionEvent.Buy, BlockTransactionEvent.Sell -
Method Summary
Modifier and TypeMethodDescriptionintThe current bonus blocks this user has.intThe new total bonus blocks this user will have if transaction completes.Methods inherited from interface com.griefdefender.api.event.BlockTransactionEvent
getAmount, getMessage, getPrice, getUser, setMessageMethods inherited from interface net.kyori.event.Cancellable
cancelled, cancelled
-
Method Details
-
currentTotal
int currentTotal()The current bonus blocks this user has.- Returns:
- The current bonus block total
-
getNewTotal
int getNewTotal()The new total bonus blocks this user will have if transaction completes.- Returns:
- The new total bonus block total
-