Palworld Admin Commands: Difference between revisions

From Survival Servers
Jump to navigation Jump to search
Fix two typos: there -> these, Passowrd -> Password
Full rewrite: complete 1.0 command list, player IDs, unban flow, RCON, REST API reference
Line 1: Line 1:
If you want to use these commands. You need to set the Admin Password on the panel and login within the chat in game using '''/AdminPassword Password'''.
{{#seo:
|title=Palworld Admin Commands: Console, RCON & REST API Reference (1.0)
|description=Every Palworld admin command with exact syntax, current for game version 1.0: chat console commands, finding Steam IDs, banning and unbanning, RCON setup, and the full REST API endpoint list for dedicated servers.
}}
Admin commands for '''Palworld''' dedicated servers, current for game version 1.0. Palworld has no drop-down developer console - admin commands are typed into the in-game '''chat''' after logging in as admin. The same commands can also be sent from outside the game over [[How to use palworld rcon|RCON]] or the REST API, which is what server dashboards use. All three are covered below.


{| class="wikitable" style="width: 70%;"
== Logging in as admin ==
|+ Admin Commands
 
Your server needs an admin password. On a Survival Servers instance one is set automatically - view or change it with the '''Server Config''' tool in the [https://www.survivalservers.com/sspanel/ control panel]. Self-hosted servers set <code>AdminPassword</code> in <code>PalWorldSettings.ini</code>.
 
Open chat in-game and authenticate:
 
/AdminPassword yourpassword
 
You keep admin rights for the session. Commands start with <code>/</code> and are typed in chat.
 
== Admin command list ==
 
The complete command set in game version 1.0:
 
{| class="wikitable"
! Command !! What it does
|-
|-
! Command !! Description
| <code>/AdminPassword &lt;password&gt;</code> || Logs you in as admin
|-
|-
| style="width: 18em;"| /Shutdown {Seconds}{Message Text} || The server is shut down after the number of Seconds. Will be notified of your MessageText.
| <code>/Shutdown &lt;seconds&gt; &lt;message&gt;</code> || Shuts the server down after the delay, showing the message to every player first. Saves the world on the way down - use this instead of /DoExit
|-
|-
| /DoExit || Force stop the server.
| <code>/DoExit</code> || Force-stops the server immediately, with no warning to players
|-
|-
| /Broadcast {MessageText} || Send message to all player in the server.
| <code>/Save</code> || Forces a world save
|-
|-
| /KickPlayer {SteamID} || Kick player from the server.
| <code>/Broadcast &lt;message&gt;</code> || Sends a message to every player on the server
|-
|-
| /BanPlayer {SteamID} || BAN player from the server.
| <code>/ShowPlayers</code> || Lists connected players with their name, player UID, and Steam ID
|-
|-
| /TeleportToPlayer {SteamID} || Teleport to current location of target player.
| <code>/KickPlayer &lt;SteamID&gt;</code> || Kicks a player from the server
|-
|-
| /TeleportToMe {SteamID} || Target player teleport to your current location
| <code>/BanPlayer &lt;SteamID&gt;</code> || Bans a player and kicks them if online
|-
|-
| /ShowPlayers || Show information on all connected players.
| <code>/UnBanPlayer &lt;SteamID&gt;</code> || Lifts a ban
|-
|-
| /Info || Show server information.
| <code>/TeleportToPlayer &lt;SteamID&gt;</code> || Teleports you to that player
|-
|-
| /Save || Save the world data.
| <code>/TeleportToMe &lt;SteamID&gt;</code> || Teleports that player to you
|-
| <code>/Info</code> || Shows server name and version
|-
| <code>/ToggleSpectate</code> || Switches you into spectator mode and back
|}
|}


At this time it is not possible to unban a player using in game commands. <br>
== Finding a player's ID ==
In order to do this you will need to log into your [[FTP Access|FTP client]] and head to the following<br>
 
location: '''/Pal/Saved/SaveGames/banlist.txt'''<br>
Run <code>/ShowPlayers</code> - it prints every connected player as <code>name,playeruid,steamid</code>. The kick, ban, and teleport commands all take the '''steamid''' value.
Delete the steam-id from this list and it will unban the player once saved and uploaded.
 
This method takes 2 minutes to take effect.
The REST API lists the same players with the ID in the form <code>steam_&lt;SteamID64&gt;</code> - use that longer form in REST calls, and the plain number in chat commands.
 
== Banning and unbanning ==
 
<code>/BanPlayer</code> writes the ban to the server's ban list; <code>/UnBanPlayer</code> removes it while the server is running. The list itself lives at:
 
/Pal/Saved/SaveGames/banlist.txt
 
You can edit that file over [[FTP Access|FTP]] while the server is stopped - one ID per line - and it loads on the next start.
 
On a Survival Servers instance the '''Pal Command''' tool in the control panel has a Ban Manager that edits the list for you, live while the server runs or queued to apply on the next start while it is stopped.
 
== RCON ==
 
RCON lets you send the same commands from outside the game with any Source RCON client. On Survival Servers instances RCON is enabled by default on '''your game port + 2''', with the admin password as the RCON password. Self-hosted servers enable it in <code>PalWorldSettings.ini</code>:
 
RCONEnabled=True,RCONPort=25577
 
Over RCON you do not run <code>/AdminPassword</code> first - authentication is the RCON password itself. See [[How to use palworld rcon|How to use Palworld RCON]] for client setup.
 
== REST API ==
 
Since the 0.3 update Palworld ships an official HTTP REST API, and it is the most reliable way to automate a server. On Survival Servers instances it is enabled by default on '''your game port + 3'''; self-hosted servers set <code>RESTAPIEnabled=True,RESTAPIPort=8212</code>. Authentication is HTTP basic auth with username <code>admin</code> and your admin password.
 
{| class="wikitable"
! Endpoint !! Method !! What it does
|-
| <code>/v1/api/info</code> || GET || Server name and version
|-
| <code>/v1/api/players</code> || GET || Connected players with IDs, level, and location
|-
| <code>/v1/api/metrics</code> || GET || Server FPS, uptime, player count, frame time
|-
| <code>/v1/api/announce</code> || POST || Broadcasts a message: <code>{"message":"Restart in 5 minutes"}</code>
|-
| <code>/v1/api/kick</code> || POST || Kicks a player: <code>{"userid":"steam_&lt;SteamID64&gt;"}</code>
|-
| <code>/v1/api/ban</code> || POST || Bans a player (same body as kick)
|-
| <code>/v1/api/unban</code> || POST || Lifts a ban (same body)
|-
| <code>/v1/api/save</code> || POST || Forces a world save
|-
| <code>/v1/api/shutdown</code> || POST || Graceful shutdown: <code>{"waittime":30,"message":"Server restarting"}</code>
|}
 
Example with curl:
 
curl -u admin:yourpassword -H "Content-Type: application/json" -X POST -d "{\"message\":\"Hello\"}" http://your.server.ip:8213/v1/api/announce
 
== Pal Command ==
 
Every Survival Servers Palworld server includes '''Pal Command''' free in the control panel - a live world map, player tracking, ban and whitelist managers, and Discord alerts, all built on the surfaces above, so you can run your server without being in the game.
 
== See also ==
 
:[[How to Create a Palworld Server Guide]]
:[[Palworld Server Settings]]
:[[How to use palworld rcon]]
:[[How to Mod your Palworld Server Guide]]


You can [https://www.survivalservers.com/services/game_servers/palworld/ host your own Palworld server] with Survival Servers with instant setup.
Need a server? [https://www.survivalservers.com/services/game_servers/palworld/ Palworld server hosting] from Survival Servers comes with instant setup, Pal Command, and full admin access.

Revision as of 12:41, 31 August 2026

Admin commands for Palworld dedicated servers, current for game version 1.0. Palworld has no drop-down developer console - admin commands are typed into the in-game chat after logging in as admin. The same commands can also be sent from outside the game over RCON or the REST API, which is what server dashboards use. All three are covered below.

Logging in as admin

Your server needs an admin password. On a Survival Servers instance one is set automatically - view or change it with the Server Config tool in the control panel. Self-hosted servers set AdminPassword in PalWorldSettings.ini.

Open chat in-game and authenticate:

/AdminPassword yourpassword

You keep admin rights for the session. Commands start with / and are typed in chat.

Admin command list

The complete command set in game version 1.0:

Command What it does
/AdminPassword <password> Logs you in as admin
/Shutdown <seconds> <message> Shuts the server down after the delay, showing the message to every player first. Saves the world on the way down - use this instead of /DoExit
/DoExit Force-stops the server immediately, with no warning to players
/Save Forces a world save
/Broadcast <message> Sends a message to every player on the server
/ShowPlayers Lists connected players with their name, player UID, and Steam ID
/KickPlayer <SteamID> Kicks a player from the server
/BanPlayer <SteamID> Bans a player and kicks them if online
/UnBanPlayer <SteamID> Lifts a ban
/TeleportToPlayer <SteamID> Teleports you to that player
/TeleportToMe <SteamID> Teleports that player to you
/Info Shows server name and version
/ToggleSpectate Switches you into spectator mode and back

Finding a player's ID

Run /ShowPlayers - it prints every connected player as name,playeruid,steamid. The kick, ban, and teleport commands all take the steamid value.

The REST API lists the same players with the ID in the form steam_<SteamID64> - use that longer form in REST calls, and the plain number in chat commands.

Banning and unbanning

/BanPlayer writes the ban to the server's ban list; /UnBanPlayer removes it while the server is running. The list itself lives at:

/Pal/Saved/SaveGames/banlist.txt

You can edit that file over FTP while the server is stopped - one ID per line - and it loads on the next start.

On a Survival Servers instance the Pal Command tool in the control panel has a Ban Manager that edits the list for you, live while the server runs or queued to apply on the next start while it is stopped.

RCON

RCON lets you send the same commands from outside the game with any Source RCON client. On Survival Servers instances RCON is enabled by default on your game port + 2, with the admin password as the RCON password. Self-hosted servers enable it in PalWorldSettings.ini:

RCONEnabled=True,RCONPort=25577

Over RCON you do not run /AdminPassword first - authentication is the RCON password itself. See How to use Palworld RCON for client setup.

REST API

Since the 0.3 update Palworld ships an official HTTP REST API, and it is the most reliable way to automate a server. On Survival Servers instances it is enabled by default on your game port + 3; self-hosted servers set RESTAPIEnabled=True,RESTAPIPort=8212. Authentication is HTTP basic auth with username admin and your admin password.

Endpoint Method What it does
/v1/api/info GET Server name and version
/v1/api/players GET Connected players with IDs, level, and location
/v1/api/metrics GET Server FPS, uptime, player count, frame time
/v1/api/announce POST Broadcasts a message: {"message":"Restart in 5 minutes"}
/v1/api/kick POST Kicks a player: {"userid":"steam_<SteamID64>"}
/v1/api/ban POST Bans a player (same body as kick)
/v1/api/unban POST Lifts a ban (same body)
/v1/api/save POST Forces a world save
/v1/api/shutdown POST Graceful shutdown: {"waittime":30,"message":"Server restarting"}

Example with curl:

curl -u admin:yourpassword -H "Content-Type: application/json" -X POST -d "{\"message\":\"Hello\"}" http://your.server.ip:8213/v1/api/announce

Pal Command

Every Survival Servers Palworld server includes Pal Command free in the control panel - a live world map, player tracking, ban and whitelist managers, and Discord alerts, all built on the surfaces above, so you can run your server without being in the game.

See also

How to Create a Palworld Server Guide
Palworld Server Settings
How to use palworld rcon
How to Mod your Palworld Server Guide

Need a server? Palworld server hosting from Survival Servers comes with instant setup, Pal Command, and full admin access.