Package de.marcely.bedwars.api.event
Class CommandExecuteEvent
java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.CommandExecuteEvent
- All Implemented Interfaces:
- Cancellable
Gets called when a player runs a bedwars subcommand.
 
This event isn't getting called when the user e.g. doesn't have the perms.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Constructor SummaryConstructorsConstructorDescriptionCommandExecuteEvent(CommandSender sender, SubCommand command, String label, String[] args) 
- 
Method SummaryModifier and TypeMethodDescriptionString[]Returns the arguments that were included by the sender.The subcommand that has been executedReturns the person/sender who executed the commandstatic HandlerListgetLabel()Returns the name or alias that was used to access the commandbooleanvoidsetCancelled(boolean bool) Methods inherited from class org.bukkit.event.EventgetEventName, isAsynchronous
- 
Constructor Details- 
CommandExecuteEvent
 
- 
- 
Method Details- 
getCommandSenderReturns the person/sender who executed the command- Returns:
- The sender who fired the command
 
- 
getCommandThe subcommand that has been executed- Returns:
- The command
 
- 
getLabelReturns the name or alias that was used to access the command- Returns:
- The label that was used by the sender
 
- 
getArgumentsReturns the arguments that were included by the sender.- Returns:
- The arguments given by the sender
 
- 
setCancelledpublic void setCancelled(boolean bool) - Specified by:
- setCancelledin interface- Cancellable
 
- 
isCancelledpublic boolean isCancelled()- Specified by:
- isCancelledin interface- Cancellable
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
-