Skip to content

iattack_placeholders

xdnw edited this page Mar 16, 2024 · 7 revisions

Placeholder Syntax

  • <arg> - A required parameter

  • [arg] - An optional parameter

  • <arg1|arg2> - Multiple parameters options

  • <arg=value> - Default or suggested value

  • [-f flag] - A optional command argument flag

Example discord usage

For placeholders {getLand}

For filters #getLand>30

Use round brackets for arguments #myFunction(123)


Placeholders


#getResource - double

This command is public

Gets a resource amount from a map of resources

Arguments:

<resources> - Map<ResourceType, Double>

A comma separated list of resources and their amounts

<resource> - ResourceType

The name of a resource


#getResourceValue - double

This command is public

Gets the total resource value for a map of resources

Arguments:

<resources> - Map<ResourceType, Double>

A comma separated list of resources and their amounts


Clone this wiki locally