Suspending Command Element
abstract class SuspendingCommandElement(pluginContainer: <ERROR CLASS>, text: <ERROR CLASS>)
Content copied to clipboard
Functions
get Untranslated Key
Link copied to clipboard
Return the plain key, to be used when looking up this command element in a CommandContext. If the key is a TranslatableText, this is the translation's id. Otherwise, this is the result of Text.toPlain.
parse
Link copied to clipboard
open fun parse(source: <ERROR CLASS>, args: <ERROR CLASS>, context: <ERROR CLASS>)
Content copied to clipboard
Attempt to extract a value for this element from the given arguments and put it in the given context. This method normally delegates to .parseValue for getting the values. This method is expected to have no side-effects for the source, meaning that executing it will not change the state of the CommandSource in any way.
to Command Element
Link copied to clipboard
Converts this SuspendingCommandElement to a Sponge-Api compatible CommandElement.