Class BusinessAdvertiseEvent

java.lang.Object
org.bukkit.event.Event
us.teaminceptus.novaconomy.api.events.business.BusinessEvent
us.teaminceptus.novaconomy.api.events.business.BusinessAdvertiseEvent
All Implemented Interfaces:
Cancellable

public class BusinessAdvertiseEvent extends BusinessEvent implements Cancellable
Called when a Business is advertised
  • Constructor Details

    • BusinessAdvertiseEvent

      public BusinessAdvertiseEvent(Business b)
      Contructs a BusinessAdvertiseEvent.
      Parameters:
      b - Business to use
  • Method Details

    • isCancelled

      public boolean isCancelled()
      Whether the business should be advertised.
      Specified by:
      isCancelled in interface Cancellable
      Returns:
      true if the business should be advertised
    • setCancelled

      public void setCancelled(boolean cancel)
      Sets whether the business should be advertised.
      Specified by:
      setCancelled in interface Cancellable
      Parameters:
      cancel - true if cancelled, else false