Parameter Types
Available Types
player
Selects one or more players.
| Option | Type | Description |
|---|---|---|
default | string | Default value (e.g., "^" for self) |
single_target | boolean | Only allow one target |
cant_target_self | boolean | Prevent self-targeting |
allow_higher_target | boolean | Allow targeting higher immunity |
Selectors: ^ (self), @ (eye trace), * (all), $steamid, #userid, !name
number
Numeric value with optional constraints.
| Option | Type | Description |
|---|---|---|
min | number | Minimum value |
max | number | Maximum value |
round | boolean | Round to integer |
floor | boolean | Floor value |
ceil | boolean | Ceiling value |
abs | boolean | Absolute value |
duration
Time duration (e.g., "5m", "1h", "30s").
| Option | Type | Description |
|---|---|---|
min | string | Minimum duration |
max | string | Maximum duration |
string
Text input. No type-specific options.
role
Role name from Lyn roles. No type-specific options.
steamid64
Steam ID (accepts SteamID or SteamID64 format). No type-specific options.
map
Map name with validation.
| Option | Type | Description |
|---|---|---|
exclude_current | boolean | Exclude current map |
color
Color value (hex or color string). No type-specific options.
Common Options
All parameter types support these options:
| Option | Type | Description |
|---|---|---|
default | any | Default value (implicitly makes param optional) |
optional | boolean | Allow empty input |
hint | string | Display hint (auto-prefixed with #lyn.commands_core.hints.) |
check | function | Custom validation: function(ctx) return bool end |