background image
Game Servers 380 7 Days to Die 4 Abiotic Factor 2 Aloft 2 alt:V 2 Americas Army Proving Grounds 2 Among Us 2 Archean 2 ARK Survival Ascended 6 ARK Survival Evolved 3 Arma 3 3 Arma Reforger 2 Aska 2 AssaultCube 2 Assetto Corsa 3 Astro Colony 2 Astroneer 2 Automobilista 2 2 Avorion 2 Banana Shooter 2 Barotrauma 3 BATTALION Legacy 2 BeamNG.drive (BeamMP) 2 Black Mesa 2 Brickadia 2 Call of Duty 2 Citadel: Forged with Fire 2 ClassiCube 2 Clone Hero 2 Colony Survival 2 Conan Exiles 4 Contagion 2 Core Keeper 2 Counter-Strike 2 3 Craftopia 2 CryoFall 2 CS2D 2 Cube 2: Sauerbraten 2 Cubic Odyssey 2 DayZ 4 DDNet 2 DDRaceNetwork 2 Dead Matter 2 Dont Starve Together 4 Eco 2 Empyrion Galactic Survival 2 Enshrouded 3 Escape from Tarkov 2 Euro Truck Simulator 2 2 Factorio 2 Farming Simulator 25 2 Fistful of Frags 2 FiveM 3 FortressCraft Evolved 2 Foundry 2 Foundry VTT 2 Frozen Flame 2 FTL Tachyon 2 Garrys Mod 3 Ground Branch 2 Half-Life 2 Deathmatch 2 Hogwarp 2 Holdfast: Nations at War 2 HumanitZ 2 Hurtworld 2 Hytale 1 Icarus 2 Insurgency Sandstorm 2 IOSoccer 2 Just Cause 3 Multiplayer 2 Kerbal Space Program 2 Killing Floor 2 3 LeagueSandbox 2 Left 4 Dead 2 Left 4 Dead 2 3 Longvinter 2 Los Angeles Crimes 2 Medal of Honor 2 Midnight Ghost Hunt 2 Mindustry 2 Minecraft 4 Minetest 2 Modiverse 2 Mordhau 3 Mount & Blade II: Bannerlord 2 Myth of Empires 2 Nazi Zombies Portable 2 Necesse 2 NeosVR 2 Neverwinter Nights EE 2 Night of the Dead 2 Nightingale 2 No Love Lost 2 No More Room in Hell 2 No One Survived 2 Nova-Life Amboise 2 Nuclear Option 2 Onset 2 Open Fortress 2 OpenArena 2 OpenRA 2 OpenRCT2 2 OpenTTD 2 Operation Harsh Doorstop 2 Palworld 3 Path of Titans 2 Pavlov VR 3 PixARK 2 Plains of Pain 2 Portal Knights 2 Post Scriptum 2 Project Zomboid 8 Puck 2 Quake Live 2 R5Reloaded 2 RedM 2 Renown 2 Resonite 2 Return to Moria 2 Rimworld Together 2 Rising World 2 Risk of Rain 2 1 Rust 4 Satisfactory 1 SCP Secret Laboratory 3 SCUM 2 Smalland 2 Solace Crafting 2 Soldat 2 Soldat 2 2 Sonic Robo Blast 2 2 Sons of the Forest 2 Soulmask 2 SourceCoop 2 Space Engineers 3 Space Station 14 2 Squad 3 Starbound 3 StarMade 2 Stationeers 2 Stormworks 2 Subnautica Nitrox 2 Sunkenland 2 SuperTuxKart 2 Sven Co-op 2 Swords 'n Magic and Stuff 2 Team Fortress 2 3 Teeworlds 2 Terraria 3 TerraTech Worlds 2 TF2 Classified 2 The Forest 3 The Front 2 The Isle 2 Tower Unite 2 Trackmania 2 Unturned 4 Urban Terror 2 V Rising 3 Valheim 3 VEIN 2 Veloren 2 Vintage Story 3 Voyagers of Nera 2 Wolfenstein: Enemy Territory 2 Wreckfest 2 Wurm Unlimited 2 Xonotic 2 Zandronum 2 Getting Started 2 Network & Connectivity 1 Server Management 2
Kategorije

Portal Knights Admin Commands


This guide covers admin and host controls for your Portal Knights dedicated server, including player management, world management, and troubleshooting common issues. For initial server setup, see Portal Knights Server Setup Guide.

Note: Portal Knights is a co-op RPG with limited traditional admin commands compared to sandbox survival games. Server management is primarily handled through configuration files and the host's in-game privileges rather than a console command system.

1. Admin / Host Privileges

In Portal Knights, the server owner (the account that created the world) has host-level privileges. On a dedicated server, admin controls are managed through:

  • Server configuration file: Controls server-wide settings like PvP, difficulty, and max players.
  • GPanel console: Start, stop, and restart the server; view logs and output.
  • In-game host menu: The host player can kick players and manage basic session settings.

Setting Up Admin Access

The first player to join the server after a fresh world creation is typically assigned host privileges. To ensure you have admin access:

  1. Start the server from GPanel.
  2. Be the first player to connect to the server.
  3. You will have host-level controls in the in-game pause menu.
Important: If you lose host privileges after a server restart, try being the first player to connect after the restart. The server typically assigns host status to the first connected player.

2. Player Management

Kicking Players

As the host, you can remove disruptive players from your server:

  1. Open the in-game pause menu while connected to your server.
  2. Navigate to the player list.
  3. Select the player you want to remove.
  4. Choose Kick to remove them from the session.

Using a Server Password

The most effective way to control who can join your server is through a password. Set it in the GPanel Startup tab or in the server configuration file:

"admins": { "credentials": { "password": "YourSecretPassword" } }

Only players who know the password can connect. Change the password and restart the server to immediately lock out unwanted players.

Max Players

Portal Knights supports up to 4 players in co-op. Control the player count via:

"users": { "credentials": { "password": "user_password" } }

Set this to a lower value if you want a more controlled group size (e.g., 2 for duo play).

3. World Management

Switching Worlds

You can run multiple worlds on the same server by changing the world_name setting:

  1. Stop the server from GPanel.
  2. Go to the Startup tab and change the WORLD_NAME variable, or edit the config file:
    "basicServerData": { "saveFolderPath": "./my_new_world_saves" }
  3. Start the server. If the world does not exist, a new one will be created automatically.

Resetting a World

To completely reset your world and start fresh:

  1. Stop the server from GPanel.
  2. Connect via SFTP (see How to Upload Files via SFTP).
  3. Navigate to the dedicated_server/savedata/ directory.
  4. Delete or rename the world folder that matches your world_name setting.
  5. Start the server. A new world will be generated automatically.
Warning: Deleting a world folder permanently removes all player progress, builds, and island data for that world. Always create a backup before deleting.

Backing Up Worlds

  1. Stop the server from GPanel.
  2. Connect via SFTP and navigate to dedicated_server/savedata/.
  3. Download the entire world folder to your local machine.
  4. Store the backup in a safe location with a descriptive name (e.g., default_backup_2026-02-26).

Restoring a Backup

  1. Stop the server from GPanel.
  2. Connect via SFTP and navigate to dedicated_server/savedata/.
  3. Upload your backup folder, ensuring the folder name matches the world_name setting.
  4. Start the server from GPanel.

4. Difficulty and PvP Settings

Changing Difficulty

World difficulty is set at creation time. To switch difficulty, you must create a new world:

Difficulty Description
Normal Standard enemy health and damage. Recommended for casual play and new groups.
Hard Increased enemy health and damage. Higher XP rewards. Recommended for experienced players.

Toggling PvP

The gameplay mode can be changed by updating the GAMEMODE startup variable in GPanel. Options are Adventure and Creative:

"gameplayMode": "Creative"

Set to false to disable player-versus-player damage. Restart the server after making changes.

5. Server Monitoring

Console Output

The GPanel Console tab displays real-time server output including:

  • Player connections and disconnections
  • World save events
  • Error messages and warnings
  • Server state changes

Restarting the Server

If the server becomes unresponsive or you need to apply configuration changes:

  1. Go to the Console tab in GPanel.
  2. Click Stop and wait for the server to fully shut down.
  3. Click Start to bring the server back online.
Tip: Use the Restart button in GPanel for a quick stop-and-start cycle. This is faster than manually stopping and starting.

6. Troubleshooting

Players Cannot Connect

  • Verify the server is running in GPanel.
  • Check that the server password has not been changed unexpectedly.
  • Confirm the server IP and port from GPanel's Network tab. See How to Find Your Server IP and Port.
  • Ensure the server has not reached the max_players limit.

Server Crashes

  • Check the GPanel console for error messages before the crash.
  • Try deleting the configuration file and restarting to regenerate defaults.
  • If the crash is related to a corrupted world, try loading a different world or restoring from backup.
  • If crashes persist, open a support ticket with the error messages from the console.

Lost Host Privileges

  • Restart the server and be the first player to connect.
  • If the issue persists, stop the server, verify your configuration file is correct, and start the server again.

Related Articles

Need Help?

If you encounter issues not covered here, open a support ticket and include your server IP, a description of the problem, and any error messages from the GPanel console.


Je li vam ovaj članak bio koristan?

Ready to Get Started?

The servers are booted, select your plan and become our latest satisfied client.