Palworld Admin Commands: Difference between revisions

From Survival Servers
Jump to navigation Jump to search
Link Pal Command for browser-based admin actions and offline bans
[wiki:wiki-operator] Reworded to the house writing rules; facts that were wrong today corrected (approved by Ryan, Nov 17)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
''You can also kick, ban, broadcast and shut down from your browser instead of in-game chat, using [https://www.survivalservers.com/services/game_servers/palworld/#pal-command Pal Command] - the free live map and web console built into your control panel on every SurvivalServers Palworld server. It can also ban players who are offline, which the in-game commands below cannot do.''
{{#seo:
|title=Palworld Admin Commands: Chat Commands, RCON and REST API
|description=Every Palworld dedicated server admin command for game version 1.0: chat commands, finding Steam IDs, banning and unbanning, RCON setup and the REST API.
}}
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.


If you want to use there commands. You need to set the Admin Password on the panel and login within the chat in game using '''/AdminPassword Passowrd'''.
== Logging in as admin ==


{| class="wikitable" style="width: 70%;"
Your server needs an admin password. On a Survival Servers server, one is set automatically. View or change it in the '''Admin Pass''' field on the Game Server page in the [https://www.survivalservers.com/sspanel/ Command Center], then click '''Save Settings & Restart'''. Self-hosted servers set <code>AdminPassword</code> in <code>PalWorldSettings.ini</code>.
|+ Admin Commands
 
Open chat in game and log in:
 
/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 <code>steam_&lt;SteamID64&gt;</code> ID per line, and it loads on the next start.
 
On a Survival Servers server, the '''Pal Command''' tool has a '''Ban List''' on its '''Access''' tab that edits the list for you. Changes apply live while the server runs, or on the next start while it's stopped.
 
=== Kicking or banning Xbox and&nbsp;PlayStation&nbsp;players ===
 
For a player who joined from Xbox or PlayStation, use the '''Pal Command''' tool on the Game Server page. The server must&nbsp;be&nbsp;running.
 
# Open '''Pal Command''' and go&nbsp;to&nbsp;'''Console'''.
# Type <code>/players</code>. Each line ends with that player's ID: <code>steam_...</code> for Steam, <code>gdk_...</code> for Xbox, <span style="white-space:nowrap"><code>ps5_...</code> for PlayStation.</span>
# Type <code>/kick &lt;name or ID&gt;</code> or <code>/ban &lt;name or ID&gt;</code>, with a reason after it if you want one, then confirm in the window that&nbsp;opens.
 
<code>/unban &lt;player ID&gt;</code> lifts a ban. The kick and ban buttons beside a name in the '''Players''' list do the same. '''Access''' &gt; '''Ban by player id''' also works while the server is stopped, and the ban applies at the&nbsp;next&nbsp;start.
 
== RCON ==
 
RCON lets you send the same commands from outside the game with any Source RCON client. On a Survival Servers server, RCON is on by default on '''your game port + 2''', with the admin password as the RCON password. If you host it yourself, turn it on in <code>PalWorldSettings.ini</code>:
 
<pre>RCONEnabled=True,RCONPort=25577</pre>
 
Over RCON, you don't run <code>/AdminPassword</code> first: the RCON password logs you in. How to set up an RCON program: [[How to use palworld rcon|How to use Palworld RCON]].
 
The REST API and '''Pal Command''' under '''TOOLS''' don't use RCON.
 
== REST API ==
 
Since the 0.3 update, Palworld has an official HTTP REST API, and it's the most reliable way to automate a server. On a Survival Servers server, it's on by default on '''your game port + 3'''. If you host it yourself, set <code>RESTAPIEnabled=True,RESTAPIPort=8212</code>. It logs in with HTTP basic auth, using the 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:
 
<pre>curl -u admin:yourpassword -H "Content-Type: application/json" -X POST -d "{\"message\":\"Hello\"}" http://your.server.ip:8213/v1/api/announce</pre>
 
== Pal Command ==
 
Every Survival Servers Palworld server includes '''Pal Command''' free in the Command Center. It has a live world map, player tracking, ban and whitelist managers, and Discord alerts, 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.
[https://www.survivalservers.com/services/game_servers/palworld/ Palworld server hosting] from Survival Servers comes with instant setup, Pal Command, and full admin access.

Latest revision as of 09:02, 17 November 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.

Logging in as admin

Your server needs an admin password. On a Survival Servers server, one is set automatically. View or change it in the Admin Pass field on the Game Server page in the Command Center, then click Save Settings & Restart. Self-hosted servers set AdminPassword in PalWorldSettings.ini.

Open chat in game and log in:

/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 steam_<SteamID64> ID per line, and it loads on the next start.

On a Survival Servers server, the Pal Command tool has a Ban List on its Access tab that edits the list for you. Changes apply live while the server runs, or on the next start while it's stopped.

Kicking or banning Xbox and PlayStation players

For a player who joined from Xbox or PlayStation, use the Pal Command tool on the Game Server page. The server must be running.

  1. Open Pal Command and go to Console.
  2. Type /players. Each line ends with that player's ID: steam_... for Steam, gdk_... for Xbox, ps5_... for PlayStation.
  3. Type /kick <name or ID> or /ban <name or ID>, with a reason after it if you want one, then confirm in the window that opens.

/unban <player ID> lifts a ban. The kick and ban buttons beside a name in the Players list do the same. Access > Ban by player id also works while the server is stopped, and the ban applies at the next start.

RCON

RCON lets you send the same commands from outside the game with any Source RCON client. On a Survival Servers server, RCON is on by default on your game port + 2, with the admin password as the RCON password. If you host it yourself, turn it on in PalWorldSettings.ini:

RCONEnabled=True,RCONPort=25577

Over RCON, you don't run /AdminPassword first: the RCON password logs you in. How to set up an RCON program: How to use Palworld RCON.

The REST API and Pal Command under TOOLS don't use RCON.

REST API

Since the 0.3 update, Palworld has an official HTTP REST API, and it's the most reliable way to automate a server. On a Survival Servers server, it's on by default on your game port + 3. If you host it yourself, set RESTAPIEnabled=True,RESTAPIPort=8212. It logs in with HTTP basic auth, using the 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 Command Center. It has a live world map, player tracking, ban and whitelist managers, and Discord alerts, 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

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