Package com.griefdefender.api.event
Interface BlockTransactionEvent.Sell
- All Superinterfaces:
BlockTransactionEvent,net.kyori.event.Cancellable,Event
- Enclosing interface:
BlockTransactionEvent
Fired when a player attempts to sell 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 blocks this user has.intThe new total 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 blocks this user has.- Returns:
- The current block total
-
getNewTotal
int getNewTotal()The new total blocks this user will have if transaction completes.- Returns:
- The new total block total
-