Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Runtime Docs Version 2.0.77

# CustomCommandData - Runtime Docs

## CustomCommandData :: table

#### Table fields

name | :: string | The name of the command.
The name of the command.
tick | :: MapTick | The tick the command was used in.
The tick the command was used in.
player_index | :: uint32? | The player who issued the command, or `nil` if it was issued from the server console.
The player who issued the command, or `nil` if it was issued from the server console.
parameter | :: string? | The parameter passed after the command, if there is one.
The parameter passed after the command, if there is one.

Concept used in

- LuaCommandProcessor::add_command()