Ghost Commands
  • Getting Started
    • Quickstart
    • Syntax
      • Command syntax
      • Arguments with multiple values
    • Custom commands
  • Documentation
    • Commands
      • Static commands
      • Non-static commands
      • Dynamic commands
      • Overloads
      • Parameters
      • Additional attributes
    • Suggestions
      • Suggestion attributes
      • Suggestor methods
    • Converters
      • Custom parameter types
      • Using the ArgumentReader
      • Multiple ways to interpret an argument
    • Processors
      • Creating a processor
      • Setting priorities
      • Cheat codes example
    • Macros
    • Settings
    • Customization
    • Included Commands
Powered by GitBook
On this page

Was this helpful?

  1. Getting Started
  2. Syntax

Command syntax

The first rule is, that any input must begin with the name of the command. Let's simply print a message to the console. Initially, we would type: print. Following this, we need to specify the message we wish to display. As the command anticipates a string argument, we could input: print Hello.

For a simple message, this would be sufficient. However, since arguments are separated by an empty space, the command would become invalid if we were to type: print Hello World. This is because we have technically supplied the print command with two distinct arguments when it only accepts one. In such instances, we simply enclose our argument in quotation marks: print "Hello World".

Note

It is also possible to use ' to enclose strings.

PreviousSyntaxNextArguments with multiple values

Last updated 7 months ago

Was this helpful?