跳至主要内容
RustStats PRO
控制台命令

Rust 控制台,已索引

在游戏中按F1打开控制台。以下内容按实际使用方式分组,管理员专用命令已标记——这些命令需要服务器上的ownerid或moderatorid,在非您拥有的服务器上执行将无效。

谁可以运行
搜索

显示 44 / 70 条命令.

仅管理员

Giving Items

5 条命令

inventory.give

管理员

inventory.give <item shortname> <amount>

Gives yourself the specified quantity of an item by its shortname.

复制inventory.give rifle.ak 1

inventory.giveto

管理员

inventory.giveto <player> <item shortname> <amount>

Gives an item to a named online player instead of yourself.

复制inventory.giveto Sam wood 1000

inventory.giveid

管理员

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

管理员

inventory.giveall <item shortname> <amount>

Gives the specified item to every player currently online.

复制inventory.giveall scrap 100

inventory.givearm

管理员

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

仅管理员

Teleporting

6 条命令

teleport

管理员

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

管理员

teleport2me <player>

Brings the named player to your current position.

复制teleport2me Sam

teleport2grid

管理员

teleport2grid <grid> [player]

Teleports you, or an optionally named player, to the centre of a map grid square.

复制teleport2grid H14

teleportlos

管理员

teleportlos

Teleports you to the first surface in your line of sight, which is handy for crossing terrain quickly.

teleportpos

管理员

teleportpos <x> <y> <z>

Teleports you to exact world coordinates.

复制teleportpos 1200 25 -430

teleporteveryone

管理员

teleporteveryone

Teleports every online player to your current position.

仅管理员

Spawning

6 条命令

spawn

管理员

spawn <prefab shortname>

Spawns an entity by its short prefab name at the point you are looking at.

复制spawn bear

entity.create

管理员

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

管理员

heli.call [player]

Calls in a patrol helicopter, targeting the named player when one is supplied.

复制heli.call

supply.call

管理员

supply.call

Calls a cargo plane that drops a supply crate at your position.

bradley.call

管理员

bradley.call

Spawns a Bradley APC on its patrol route at the Launch Site.

spawn.fillpopulation

管理员

spawn.fillpopulation

Immediately repopulates the world with animals, nodes and other spawn populations up to their configured targets.

仅管理员

Player Administration

13 条命令

kick

管理员

kick <player> [reason]

Disconnects a connected player from the server with an optional reason shown to them.

复制kick "Sam" "afk in safe zone"

ban

管理员

ban <player> [reason] [duration]

Bans a currently connected player by name, optionally for a limited duration.

复制ban "Sam" "cheating" 7d

banid

管理员

banid <steamid> [name] [reason]

Bans a player by Steam ID, which works even while they are offline.

复制banid 76561198012345678 "Sam" "cheating"

unban

管理员

unban <steamid>

Removes a Steam ID from the ban list.

复制unban 76561198012345678

banlistex

管理员

banlistex

Prints the full ban list including each ban reason and expiry time.

god

管理员

god <true|false>

Toggles invulnerability for yourself so no damage source can hurt you.

复制god true

noclip

管理员

noclip

Toggles free-fly movement that passes through terrain and buildings.

ownerid

管理员

ownerid <steamid> "<name>" "<reason>"

Grants a Steam ID full owner-level admin rights on the server.

复制ownerid 76561198012345678 "Sam" "head admin"

moderatorid

管理员

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

管理员

removeowner <steamid>

Revokes owner-level admin rights from a Steam ID.

复制removeowner 76561198012345678

removemoderator

管理员

removemoderator <steamid>

Revokes moderator rights from a Steam ID.

复制removemoderator 76561198012345678

mute

管理员

mute <player|steamid>

Silences a player so their voice and chat are hidden from everyone on the server.

复制mute 76561198012345678

unmute

管理员

unmute <player|steamid>

Restores voice and chat for a previously muted player.

复制unmute 76561198012345678

仅管理员

Server Control

14 条命令

serverinfo

管理员

serverinfo

Prints live server statistics including player count, framerate, memory use and uptime.

save

管理员

save

Forces an immediate world save so recent building and loot changes survive a restart.

server.writecfg

管理员

server.writecfg

Writes the current convar values plus the user and ban lists to disk.

restart

管理员

restart [seconds]

Starts a broadcast countdown and then restarts the server, saving on the way down.

复制restart 300

quit

管理员

quit

Shuts the server down immediately with no countdown.

env.time

管理员

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

管理员

admintime <-1-24>

Overrides the time of day for your client only, with -1 restoring the real server time.

复制admintime 12

weather.rain

管理员

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

管理员

weather.fog <0.0-1.0>

Forces fog density from clear to fully fogged.

复制weather.fog 0

weather.wind

管理员

weather.wind <0.0-1.0>

Forces wind strength, which affects trees, cloth and wind turbine output.

复制weather.wind 0.5

server.hostname

管理员

server.hostname "<name>"

Sets the server name shown in the in-game server browser.

复制server.hostname "RustStats 2x Solo/Duo"

server.description

管理员

server.description "<text>"

Sets the long description shown on the server browser detail page.

复制server.description "Weekly wipe, no BPs"

server.maxplayers

管理员

server.maxplayers <number>

Sets the maximum number of players allowed on the server at once.

复制server.maxplayers 150

say

管理员

say "<message>"

Broadcasts a message to every player as the SERVER account.

复制say "wipe in 10 minutes"

最终说明

此页面反映玩家实际使用的命令。权威列表始终是游戏本身:在控制台中输入 find <text> 它会打印当前构建注册的所有命令和变量及其当前值。如果此处与 find不一致,请以 find 为准——Facepunch 会在每月更新中重命名和调整变量。