Skip to content

CommandClass.ParseType

<<any> Argument> CommandClass.ParseType(<Player> ExecutePlayer, <string> Argument, <string> Type)
This converts an argument to the Type, e.g. to a number, boolean, etc.

Note

This is used within CommandClass.ParseArguments

Parameters

  • Player ExecutePlayer

    The player who executed the command

  • string Argument

    The argument lol

  • string Type

    The type of argument to parse to. This can be one of the following:

    - string
    - any
    - boolean
    - number
    - colorrgb (rrrgggbbb is the format, e.g. 001255255)
    - player
    

Returns

  • any Argument

    The parsed argument

Source