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
Called when a Business is advertised
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the business should be advertised.voidsetCancelled(boolean cancel) Sets whether the business should be advertised.Methods inherited from class us.teaminceptus.novaconomy.api.events.business.BusinessEvent
getBusiness, getHandlerList, getHandlersMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
BusinessAdvertiseEvent
Contructs a BusinessAdvertiseEvent.- Parameters:
b- Business to use
-
-
Method Details
-
isCancelled
public boolean isCancelled()Whether the business should be advertised.- Specified by:
isCancelledin interfaceCancellable- Returns:
- true if the business should be advertised
-
setCancelled
public void setCancelled(boolean cancel) Sets whether the business should be advertised.- Specified by:
setCancelledin interfaceCancellable- Parameters:
cancel- true if cancelled, else false
-