-
Notifications
You must be signed in to change notification settings - Fork 0
Console Variables
nigel edited this page Sep 2, 2018
·
2 revisions
Console Variables, ConVars, or cvars for short can be integers, floats, booleans, or strings.
They are initialized with default values and can be given minimum and maximum values for integers, floats, and booleans.
For booleans, only non-0 number values and "true" will evaluate to true. Everything else is treated as false.
There are four flags that can be associated with a ConVar:
| Flag | Description |
|---|---|
FCVAR_NOTIFY |
Clients are notified of changes. |
FCVAR_CONSTANT |
The cvar is assigned to the default value and cannot be changed. |
FCVAR_READONLY |
Only internal methods will be able to change the value, gamerule will be able to change it, but hm_cvar will not. |
FCVAR_GAMERULE |
The cvar is tied to a gamerule of the same name. |
| ConVar | Default | Flags | Description | Range |
|---|---|---|---|---|
default_ban_time |
0 | none | Default number of minutes to ban someone for if no value is provided to the hm_ban command. |
0.0+ |
| ConVar | Default | Flags | Description | Range |
|---|---|---|---|---|
default_ban_time |
0 | none | Default number of minutes to ban someone for if no value is provided to the hm_ban command. |
0.0+ |
| ConVar | Default | Flags | Description | Range |
|---|---|---|---|---|
disco_time |
1.0 | none | Change the tempo of the disco! In fractional seconds. | 0.0001+ |
| ConVar | Default | Flags | Description | Range |
|---|---|---|---|---|
geoip_onconnect |
false | none | Display player's GeoIP location info when connecting. | 0.0-1.0 |
| ConVar | Default | Flags | Description | Range |
|---|---|---|---|---|
motd_enabled |
1 | FCVAR_NOTIFY |
Enable or disable the motd plugin. | 0.0-1.0 |
| ConVar | Default | Flags | Description | Range |
|---|---|---|---|---|
reserved_slots |
1 | FCVAR_NOTIFY |
Set the number of reserved slots. | 0.0+ |
| ConVar | Default | Flags | Description | Range |
|---|---|---|---|---|
drop_head |
true | FCVAR_NOTIFY |
Enable or disable dropping heads on death. | 0.0-1.0 |
| ConVar | Default | Flags | Description | Range |
|---|---|---|---|---|
urlchat_enabled |
true | none | Enable the URL Chat plugin. | 0.0-1.0 |
| ConVar | Default | Flags | Description | Range |
|---|---|---|---|---|
villager_shop_enabled |
true | FCVAR_NOTIFY |
Enable or disable creating villager shops. | 0.0-1.0 |
villager_restock_distance |
0 | FCVAR_NOTIFY |
Set the maximum distance you can be away from a villager to restock it, 0 disables this. | 0.0+ |
| ConVar | Default | Flags | Description | Range |
|---|---|---|---|---|
vote_timeout |
90 | none | Seconds to wait for votes before ending. | 0.0+ |
vote_time_add |
60 | none | Seconds to add to the timeout each time a vote is cast. | 0.0+ |
| ConVar | Default | Flags | Description | Range |
|---|---|---|---|---|
warp_enabled |
true | none | Enable the warp system. | 0.0-1.0 |
warp_flags |
'\0' | none | Set the flag required to warp. Example: 'd' for CUSTOM1, '\0' for none. | none |