Commands
Description
The Commands module provides the following commands for use in the mod's chat.
Commands
Enter commands in chat with the / prefix. In the syntax below, <value> is a required argument and [option] is an optional argument; do not type the < > or [ ] characters.
Commands that affect your own character must be run in-game.
The server also reads commands from $profile:AC/commands.txt. Write one command per line, in lowercase and without the / prefix. Each read consumes one line from the file.
day
reload permissionsThe default interval is 5 seconds, configurable through AC_CommandTxtReadTime in the server configuration.
This mode runs without an associated character. In this module, it supports day, night, default, exportitems, exportproxydata, reload, kick with a Steam ID and tpp. The other commands on this page require a character and must be used in-game. Chat and notification responses are not available through file execution.
/blood
Sets your character's blood to a percentage of its maximum. The value is clamped to the range from 0 to 100.
/blood <value>
/blood 100- Permission:
command.bloodorroot. - Arguments:
value: required percentage from 0 to 100.
/clone
Copies the inventory of another player found within 2 meters to your character.
/clone- Permission:
command.cloneorroot. - Arguments: none.
WARNING
Your current inventory is deleted before the copy.
/day
Sets the server time to 12:00 on the current day.
/day- Permission:
command.dayorroot. - Arguments: none.
/default
Resets the module settings to their defaults.
/default <module>
/default banking- Permission:
command.defaultorroot. - Arguments:
module: required module name.
WARNING
Running this command will discard the previous settings.
/exportitems
Exports the list of item, weapon and magazine classes to $profile:AC/items.json, including information such as names, attachments and compatible slots. Accepts optional class name filters.
/exportitems [filter...]
/exportitems
/exportitems Bandage AKM- Permission:
command.exportitemsorroot. - Arguments:
filter...: optional class name filters.
/exportproxydata
Exports Central Economy proxy data within a 20,000-meter radius around coordinates X 7500 and Z 7500.
/exportproxydata- Permission:
command.exportproxydataorroot. - Arguments: none.
WARNING
The export may temporarily pause server processing. Run it on a test server or when no players are connected.
/fix
Repairs the items in your inventory, restoring their condition and removing wetness.
/fix- Permission:
command.fixorroot. - Arguments: none.
/heal
Heals your character. Removes bleeding, disease agents and restraints, restores stamina, water and energy, and wakes an unconscious character.
/heal- Permission:
command.healorroot. - Arguments: none.
/health
Sets your character's health to a percentage of its maximum. The value is clamped to the range from 0 to 100.
/health <value>
/health 100- Permission:
command.healthorroot. - Arguments:
value: required percentage from 0 to 100.
/kick
Kicks a connected player by Steam ID. The reason is optional and can contain spaces. Without a Steam ID, kicks the player running the command.
/kick [SteamID] [reason...]
/kick 76561198000000000 Server maintenance- Permission:
command.kickorroot. - Arguments:
SteamID: optional target identifier;reason...: optional reason after the identifier.
/kill
Kills your character.
/kill- Permission:
command.killorroot. - Arguments: none.
/night
Sets the server time to 01:00 on the current day.
/night- Permission:
command.nightorroot. - Arguments: none.
/reload
Reloads a module's settings. Use permissions to reload permissions and send them to connected players again.
/reload <module|permissions>
/reload banking
/reload permissions- Permission:
command.reloadorroot. - Arguments:
module|permissions: required module name or the literalpermissions.
/replace
Copies your inventory to another player found within 2 meters.
/replace- Permission:
command.replaceorroot. - Arguments: none.
WARNING
The target player's current inventory is deleted before the copy.
/shock
Sets your character's shock to a percentage of its maximum. The value is clamped to the range from 0 to 100.
/shock <value>
/shock 100- Permission:
command.shockorroot. - Arguments:
value: required percentage from 0 to 100.
/spawn
Creates objects using the specified class. The default quantity is 1 and the limit per execution is 50. Without destination options, objects are created at the player's position.
/spawn <class>[:quantity] [me|to|ai] [debug]
/spawn BandageDressing:3 me- Permission:
command.spawnorroot. - Arguments:
class: required class name;quantity, destination anddebug: optional modifiers described below.
| Option | Behavior |
|---|---|
:quantity | Number of objects to create, clamped to the range from 1 to 50. |
me | Creates items in the player's inventory. |
to | Tries to use a nearby object as a container, searching within 5 meters. If no container is found, creates objects at the player's position. |
ai | Creates a creature of the specified class. |
debug | Runs debug initialization on the created item; the result depends on its class. Does not apply in ai mode. |
INFO
The to option does not select the object under your cursor or guarantee the nearest container. Creating items in an inventory depends on available space and item compatibility.
If options are combined, ai takes priority over me, to and debug; in item mode, me takes priority over to.
/strip
Removes your character's equipment and the item in their hands, including items stored inside that equipment.
/strip- Permission:
command.striporroot. - Arguments: none.
WARNING
Removed items are deleted.
/survivor
Creates a character of a random class at your position and moves your own character slightly to the side. Without options, applies the server's configured starting equipment.
The created character is separate from the character you control.
/survivor [god] [clone|raw]
/survivor god clone- Permission:
command.survivororroot. - Arguments:
god,cloneandraw: optional modifiers described below.
| Option | Behavior |
|---|---|
god | Disables damage to the created character. |
clone | Copies your inventory to the created character. |
raw | Skips starting equipment. |
If clone and raw are used together, clone takes priority.
/teleport
Teleports your character. The /tp alias accepts the same arguments.
/teleport <X> <Z>
/teleport <X> <Y> <Z>
/tp 7500 7500- Permission:
command.teleport(usecommand.tpfor/tp) orroot. - Arguments:
XandZ: required map coordinates;Y: optional height, placed between X and Z.
In the short form, X and Z are the map axes. In the full form, Y represents height. The position goes through the mod's ground-contact adjustment.
/tpp
Teleports another connected player identified by Steam ID. Uses the same coordinates as /teleport.
/tpp <SteamID> <X> <Z>
/tpp <SteamID> <X> <Y> <Z>
/tpp 76561198000000000 7500 7500- Permission:
command.tpporroot. - Arguments:
SteamID,XandZ: required target and map coordinates;Y: optional height, placed between X and Z.
Permissions
Chat requires the command.<command> permission, configured in Permissions. For example, /heal uses command.heal and /spawn uses command.spawn. The root permission allows all commands. The /tp alias uses command.tp, while /teleport uses command.teleport.
Add the required identifier to the responsible group’s m_Permissions in $profile:AC/Permissions.json and associate players with that group. Each command above lists its exact permission. File commands run directly on the server without a player permission check; restrict access to commands.txt.
