Package ch.njol.skript.command
Class CommandUsage
java.lang.Object
ch.njol.skript.command.CommandUsage
Holds info about the usage of a command.
TODO: replace with record when java 17
-
Constructor Details
-
CommandUsage
- Parameters:
usage
- The dynamic usage message, can contain expressions.defaultUsage
- A fallback usage message for use in non-event environments.
-
-
Method Details
-
getRawUsage
- Returns:
- The usage message as a
VariableString
.
-
getUsage
Get the usage message without an event to evaluate it.- Returns:
- The evaluated usage message.
-
getUsage
- Parameters:
event
- The event used to evaluate the usage message.- Returns:
- The evaluated usage message.
-
toString
-