inventory.give
管理员inventory.give <item shortname> <amount>
Gives yourself the specified quantity of an item by its shortname.
复制inventory.give rifle.ak 1
在游戏中按F1打开控制台。以下内容按实际使用方式分组,管理员专用命令已标记——这些命令需要服务器上的ownerid或moderatorid,在非您拥有的服务器上执行将无效。
显示 44 / 70 条命令.
5 条命令
inventory.give <item shortname> <amount>
Gives yourself the specified quantity of an item by its shortname.
复制inventory.give rifle.ak 1
inventory.giveto <player> <item shortname> <amount>
Gives an item to a named online player instead of yourself.
复制inventory.giveto Sam wood 1000
inventory.giveid <steamid> <item id> <amount>
Gives an item to a player by Steam ID using the numeric item ID rather than the shortname.
复制inventory.giveid 76561198012345678 -151838493 1
inventory.giveall <item shortname> <amount>
Gives the specified item to every player currently online.
复制inventory.giveall scrap 100
inventory.givearm <item shortname> <amount>
Gives yourself an item placed directly into your belt slots rather than the main inventory.
复制inventory.givearm syringe.medical 6
6 条命令
teleport <player> [target player]
Teleports you to a player, or teleports the first named player to the second one when two names are given.
复制teleport "Sam" "Alex"
teleport2me <player>
Brings the named player to your current position.
复制teleport2me Sam
teleport2grid <grid> [player]
Teleports you, or an optionally named player, to the centre of a map grid square.
复制teleport2grid H14
teleportlos
Teleports you to the first surface in your line of sight, which is handy for crossing terrain quickly.
teleportpos <x> <y> <z>
Teleports you to exact world coordinates.
复制teleportpos 1200 25 -430
teleporteveryone
Teleports every online player to your current position.
6 条命令
spawn <prefab shortname>
Spawns an entity by its short prefab name at the point you are looking at.
复制spawn bear
entity.create <full prefab path>
Creates an entity from its full prefab path, which reaches prefabs that the short spawn name cannot.
复制entity.create assets/prefabs/deployable/locker/locker.deployed.prefab
heli.call [player]
Calls in a patrol helicopter, targeting the named player when one is supplied.
复制heli.call
supply.call
Calls a cargo plane that drops a supply crate at your position.
bradley.call
Spawns a Bradley APC on its patrol route at the Launch Site.
spawn.fillpopulation
Immediately repopulates the world with animals, nodes and other spawn populations up to their configured targets.
13 条命令
kick <player> [reason]
Disconnects a connected player from the server with an optional reason shown to them.
复制kick "Sam" "afk in safe zone"
ban <player> [reason] [duration]
Bans a currently connected player by name, optionally for a limited duration.
复制ban "Sam" "cheating" 7d
banid <steamid> [name] [reason]
Bans a player by Steam ID, which works even while they are offline.
复制banid 76561198012345678 "Sam" "cheating"
unban <steamid>
Removes a Steam ID from the ban list.
复制unban 76561198012345678
banlistex
Prints the full ban list including each ban reason and expiry time.
god <true|false>
Toggles invulnerability for yourself so no damage source can hurt you.
复制god true
noclip
Toggles free-fly movement that passes through terrain and buildings.
ownerid <steamid> "<name>" "<reason>"
Grants a Steam ID full owner-level admin rights on the server.
复制ownerid 76561198012345678 "Sam" "head admin"
moderatorid <steamid> "<name>" "<reason>"
Grants a Steam ID moderator rights, which allow most admin commands but not server configuration.
复制moderatorid 76561198012345678 "Alex" "weekend mod"
removeowner <steamid>
Revokes owner-level admin rights from a Steam ID.
复制removeowner 76561198012345678
removemoderator <steamid>
Revokes moderator rights from a Steam ID.
复制removemoderator 76561198012345678
mute <player|steamid>
Silences a player so their voice and chat are hidden from everyone on the server.
复制mute 76561198012345678
unmute <player|steamid>
Restores voice and chat for a previously muted player.
复制unmute 76561198012345678
14 条命令
serverinfo
Prints live server statistics including player count, framerate, memory use and uptime.
save
Forces an immediate world save so recent building and loot changes survive a restart.
server.writecfg
Writes the current convar values plus the user and ban lists to disk.
restart [seconds]
Starts a broadcast countdown and then restarts the server, saving on the way down.
复制restart 300
quit
Shuts the server down immediately with no countdown.
env.time <0-24>
Sets the in-game time of day for everyone on the server, where 12 is noon and 0 is midnight.
复制env.time 12
admintime <-1-24>
Overrides the time of day for your client only, with -1 restoring the real server time.
复制admintime 12
weather.rain <0.0-1.0>
Forces rainfall intensity, where 0 clears the sky and 1 is a full downpour.
复制weather.rain 1
weather.fog <0.0-1.0>
Forces fog density from clear to fully fogged.
复制weather.fog 0
weather.wind <0.0-1.0>
Forces wind strength, which affects trees, cloth and wind turbine output.
复制weather.wind 0.5
server.hostname "<name>"
Sets the server name shown in the in-game server browser.
复制server.hostname "RustStats 2x Solo/Duo"
server.description "<text>"
Sets the long description shown on the server browser detail page.
复制server.description "Weekly wipe, no BPs"
server.maxplayers <number>
Sets the maximum number of players allowed on the server at once.
复制server.maxplayers 150
say "<message>"
Broadcasts a message to every player as the SERVER account.
复制say "wipe in 10 minutes"
此页面反映玩家实际使用的命令。权威列表始终是游戏本身:在控制台中输入 find <text> 它会打印当前构建注册的所有命令和变量及其当前值。如果此处与 find不一致,请以 find 为准——Facepunch 会在每月更新中重命名和调整变量。