Class VoucherEvent

java.lang.Object
xyz.geik.farmer.modules.voucher.handlers.VoucherEvent
All Implemented Interfaces:
org.bukkit.event.Listener

public class VoucherEvent extends Object implements org.bukkit.event.Listener
Voucher Event Listener class
Since:
1.0.0
Author:
poyraz
  • 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

      public void onFarmerRemoveEvent(FarmerRemoveEvent event)
      Gives voucher when farmer is removed to owner
      Parameters:
      event - of farmer remove event