Class VoucherEvent
java.lang.Object
xyz.geik.farmer.modules.voucher.handlers.VoucherEvent
- All Implemented Interfaces:
org.bukkit.event.Listener
Voucher Event Listener class
- Since:
- 1.0.0
- Author:
- poyraz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Gives voucher when farmer is removed to ownervoid
onVoucherUseEvent
(@NotNull org.bukkit.event.player.PlayerInteractEvent event) Uses voucher to farmer and opens farmer gui
-
Constructor Details
-
VoucherEvent
public VoucherEvent()Constructor of class
-
-
Method Details
-
onVoucherUseEvent
public void onVoucherUseEvent(@NotNull @NotNull org.bukkit.event.player.PlayerInteractEvent event) Uses voucher to farmer and opens farmer gui- Parameters:
event
- of player interact event
-
onFarmerRemoveEvent
Gives voucher when farmer is removed to owner- Parameters:
event
- of farmer remove event
-