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 Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionCommandExecuteEvent
(CommandSender sender, SubCommand command, String label, String[] args) -
Method Summary
Modifier and TypeMethodDescriptionString[]
Returns the arguments that were included by the sender.The subcommand that has been executedReturns the person/sender who executed the commandstatic HandlerList
getLabel()
Returns the name or alias that was used to access the commandboolean
void
setCancelled
(boolean bool) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
CommandExecuteEvent
-
-
Method Details
-
getCommandSender
Returns the person/sender who executed the command- Returns:
- The sender who fired the command
-
getCommand
The subcommand that has been executed- Returns:
- The command
-
getLabel
Returns the name or alias that was used to access the command- Returns:
- The label that was used by the sender
-
getArguments
Returns the arguments that were included by the sender.- Returns:
- The arguments given by the sender
-
setCancelled
public void setCancelled(boolean bool) - Specified by:
setCancelled
in interfaceCancellable
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-