服务器指令(Server Commands是通过输入特定文本字符串后激活的高级功能。

用途

在聊天框(世界、区域或小队聊天)中输入一句指令时,你需要在指令前插入@或/符号。例如:@teleport Nelson/Seattle、/teleport Nelson/Stratford等等。需要注意的是指令变量通过前斜杠进行区分。所有持续性变量都必须以秒数计算。

3.15.2.0指令列表

Command Syntax Description
Admin Admin [Steam64 ID | Player] Adds the specified player to the list of users allowed to use admin commands in the chat.
Admins Admins Shows a list of the current admins.
Ban Ban [Steam64 ID | Player]/[Reason]/[Duration] Bans the specified player for a specified reason (optional) and duration (optional). Default is one year, or 31,536,000 seconds as shown in console. Users attempting to connect to the server will see the remaining seconds and reason for the ban.
Bans Bans Shows a list of the current bans.
Bind Bind [IP] Binds a specific internal IP to the socket.
Chatrate Chatrate [Number] Assigns a minimum time between chat messages to prevent spamming.
Cheats Cheats [Enable | Disable] Allows your server to access certain commands, such as Give, and can only be used in the server's commands.dat file.
Cycle Cycle [Number] Assigns the length of the day/night cycle in seconds.
Day Day Assigns the current time to day.
Decay Decay [Barricade Duration]/[Structure Duration] Sets the duration before a barricade/structure is removed if the associated player or group member doesn't join. Default is 604,800 seconds (7 days.)
Debug Debug Provides information on the state of the server.
Experience Experience [Steam64 ID | Player]/[Experience] Gives a specified player experience.
Filter Filter Enables the old name filter.
Give Give [Steam64 ID | Player]/[ItemID]/Amount Gives the specified player an item.
Gold Gold Restricts the server to only allow Gold players.
Help Help [Command] Provides information on the specified command.
Hide_Admins Hide_Admins Admins will appear as if they are normal players.
Kick Kick [Steam64 ID | Player]/[Reason] Disconnects the specified player from the server.
Loadout Loadout [SkillsetID]/[ItemID]/[ItemID]/... Gives players each item when spawning. Can only be used in a server console or the server's Commands file. SkillsetIDs are from 0-10 in the same order as displayed when editing a survivor. 255 = All Skillsets.
Log Log [Chat]/[Join/Leave]/[Death] Enables logging Chat/Join/Leave/Death messages. Each parameter can only be Y or N.
Map Map [Level] Sets the map that the server loads on startup.
MaxPlayers MaxPlayers [Number] Sets the maximum number of connections the server is willing to accept.
Mode Mode [Easy | Normal | Hard] Assigns the difficulty of the server.
Name Name [Text] Assigns the name of the server on the server list.
Night Night Assigns the current time to night.
Owner Owner [Steam64 ID] Gives admin rights to the steamid. Must be placed in the server's Commands.dat
Password Password [Text] Assigns the codeword required for entry to the server.
Permit Permit [Steam64 ID]/[Tag] Adds the specified player to the list of users allowed to join the server.
Permits Permits Shows a list of the current players allowed to join the server.
Perspective Perspective [First | Third | Both] Assigns the perspective of the server.
Players Players Shows a list of the current player on the server.
Port Port [Number] Assigns the port of the server. Port + 1 and port + 2 are also used, so remember to open them on the router as well.
PvE PvE Disables player versus player combat in favor of player versus environment.
Save Save Forces a proper save of the server state.
Say Say [Text]/[R]/[G]/[B] Broadcasts a message to all of the connected clients.
Shutdown Shutdown Properly saves the server state, disconnects the clients and closes the server.
Slay Slay [Steam64 ID | Player] Kills the specified player in-game and bans them for 31,536,000 seconds (one year).
Storm Storm Toggles rain.
Sync Sync [Key] Enables syncing player data between servers using the same key.
Teleport Teleport [Steam64 ID | Player]/[Steam64 ID | Player | Location] Teleports the first player to the second or a location.
Time Time [Number] Assigns the current time in seconds of the day/night cycle.
Timeout Timeout [Number] Assigns a maximum ping threshold to the server before a client is kicked.
Unadmin Unadmin [Steam64 ID | Player] Removes the specified player from the list of users allowed to use admin commands in the chat.
Unban Unban [Steam64 ID] Removes the specified player from the list of users not allowed to join the server.
Unpermit Unpermit [Steam64 ID] Removes the specified player from the list of users allowed to join the server.
Vehicle Vehicle [Steam64 ID | Player]/[VehicleID] Gives the specified player a vehicle.
Votify Votify [Vote Allowed Y|N]/[Pass Cooldown]/[Fail Cooldown]/[Vote Duration]/[Vote Percentage]/[Required Players] Sets up voting. Pass/fail cooldown specifies the amount of time that players must wait after a successful/failed vote before initiating another vote. Vote duration specifies the amount of time for each vote to remain active. Vote percentage indicates the percentage of "yes" votes required for a successful vote and must be expressed in decimals (e.g., 0.6 for 60%). Required players specifies the minimum number of connected players in order to initiate a vote.
Welcome Welcome [Text]/[R]/[G]/[B] Sets a chat box welcome message shown to clients when connected to the server.
Airdrop Airdrop Spawns in an airdrop

历史

VERSION
CHANGES
3.14.13.0
The "/" command prefix works alongside "@" in vanilla.

Cheats command added in order to filter out admin abuse.

3.15.0.0
The Gold mode was changed into it's own command.
3.15.2.0
Admins can go incognito with the "Hide_Admins" command.

轶事

  • “透视”指令有本地文件“ServerCommandCamera.dat”,说明这条指令原本的拼写是“Camera”。
avatar