Interface CommandExecuteEvent
-
- All Superinterfaces:
Event,ResultedEvent<CommandExecuteEvent.CommandResult>
- All Known Implementing Classes:
CommandExecuteEventImpl
public interface CommandExecuteEvent extends ResultedEvent<CommandExecuteEvent.CommandResult>
This event is fired when someone executes a command.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCommandExecuteEvent.CommandResult-
Nested classes/interfaces inherited from interface com.velocitypowered.api.event.ResultedEvent
ResultedEvent.ComponentResult, ResultedEvent.GenericResult, ResultedEvent.Result
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringrawCommand()Gets the original command being executed without the first slash.CommandSourcesource()-
Methods inherited from interface com.velocitypowered.api.event.ResultedEvent
result, setResult
-
-
-
-
Method Detail
-
source
CommandSource source()
-
rawCommand
String rawCommand()
Gets the original command being executed without the first slash.- Returns:
- the original command being executed
-
-