public static class CommandEvent.Command extends Object
Is used to parse a message which seems to be a command.
| Modifier and Type | Method | Description |
|---|---|---|
String[] |
getArgs() |
|
List<String> |
getArgsAsList() |
|
ICommand |
getExecutor() |
|
String |
getJoinedArgs() |
|
String |
getJoinedArgs(int fromIndex) |
|
String |
getLabel() |
public String getLabel()
public String[] getArgs()
public ICommand getExecutor()
public String getJoinedArgs()
public String getJoinedArgs(int fromIndex)
fromIndex - from which argument index the Strings will be joined.IllegalArgumentException - if the given index is invalid (higher than the argument length or lower than 0.Copyright © 2018. All rights reserved.