Package net.citizensnpcs.api.event
Class CommandSenderCreateNPCEvent
java.lang.Object
org.bukkit.event.Event
net.citizensnpcs.api.event.CitizensEvent
net.citizensnpcs.api.event.NPCEvent
net.citizensnpcs.api.event.NPCCreateEvent
net.citizensnpcs.api.event.CommandSenderCreateNPCEvent
- All Implemented Interfaces:
- Cancellable
- Direct Known Subclasses:
- CommandSenderCloneNPCEvent,- PlayerCreateNPCEvent
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic HandlerListbooleanvoidsetCancelled(boolean cancel) voidsetCancelReason(String reason) Sets the reason for cancelling the event.Methods inherited from class org.bukkit.event.EventgetEventName, isAsynchronous
- 
Constructor Details- 
CommandSenderCreateNPCEvent
 
- 
- 
Method Details- 
getCancelReason- Returns:
- The reason for cancelling the event
- See Also:
 
- 
getCreator- Returns:
- The CommandSendercreating the NPC.
 
- 
getHandlers- Overrides:
- getHandlersin class- NPCCreateEvent
 
- 
isCancelledpublic boolean isCancelled()- Specified by:
- isCancelledin interface- Cancellable
 
- 
setCancelledpublic void setCancelled(boolean cancel) - Specified by:
- setCancelledin interface- Cancellable
 
- 
setCancelReasonSets the reason for cancelling the event. This will be sent to theCommandSendercreator to explain why the NPC cannot be created.- Parameters:
- reason- The reason explaining the cancellation
 
- 
getHandlerList
 
-