This guide covers admin setup, commands, player management, and map rotation controls for your Midnight Ghost Hunt dedicated server. For initial server setup and configuration, see Midnight Ghost Hunt Server Setup Guide.
1. Admin Setup
Setting the Admin Password
To use admin commands, you need to set an admin password. This is configured in the GPanel Startup tab:
- Log in to GPanel and select your Midnight Ghost Hunt server.
- Go to the Startup tab.
- Set the ADMIN_PASSWORD variable to a secure password.
- Restart the server for the change to take effect.
Logging In as Admin In-Game
Once connected to your server:
- Open the in-game console (press
~tilde key). - Type the admin login command:
AdminPassword YourAdminPassword - You will receive a confirmation message if the password is correct.
2. Admin Commands
The following commands are available after authenticating as an admin. Open the console with ~ and type the command.
| Command | Description |
|---|---|
AdminPassword <password> |
Authenticate as admin with the configured password. |
Kick <player_name> |
Kick a player from the server by their display name. |
Ban <player_name> |
Ban a player from the server. They will not be able to rejoin. |
Unban <player_name> |
Remove a ban, allowing the player to rejoin. |
ServerTravel <map_path> |
Force the server to change to a specific map immediately. |
RestartRound |
Restart the current round. |
Pause |
Pause the current game. Use again to unpause. |
ListPlayers |
Display a list of all connected players and their IDs. |
3. Player Management
Kicking Players
To remove a disruptive player from the current session:
Kick PlayerName
The player will be disconnected immediately but can rejoin unless banned.
Banning Players
To permanently block a player from your server:
Ban PlayerName
Bans persist across server restarts. To remove a ban:
Unban PlayerName
Using a Server Password
For private games, set a server password in the GPanel Startup tab or in the server configuration. Only players who know the password can join.
4. Map Rotation Management
Changing Maps During a Match
Use the ServerTravel command to switch maps immediately:
ServerTravel /Game/Maps/Museum
ServerTravel /Game/Maps/Mansion
ServerTravel /Game/Maps/School
ServerTravel /Game/Maps/GhostShip
ServerTravel /Game/Maps/Cabin
ServerTravel /Game/Maps/Asylum
ServerTravel /Game/Maps/Diner
ServerTravel ends the current match and loads the specified map immediately. All players will be moved to the new map.
Editing the Map Rotation
To change which maps are included in the automatic rotation, edit Game.ini:
MidnightGhostHunt/Saved/Config/LinuxServer/Game.ini
Add or remove +GameMapRotation entries under [/Script/MGH.MGHGameMode]. The server cycles through listed maps in order after each match.
- Stop the server from GPanel.
- Edit
Game.inivia the Files tab or SFTP. - Add or remove map entries as needed.
- Save the file and start the server.
5. RCON (Remote Console)
If RCON is enabled, you can execute admin commands remotely without being connected to the game:
- Set the ADMIN_PASSWORD in GPanel's Startup tab (this doubles as the RCON password).
- Use an RCON client to connect to your server's IP and RCON port.
- Execute the same commands listed in the Admin Commands section above.
6. Troubleshooting
Admin Commands Not Working
- Verify you have entered the admin password correctly using
AdminPasswordin the console. - Check that
ADMIN_PASSWORDis set in the GPanel Startup tab. - Ensure you are using the exact player name when kicking or banning (names are case-sensitive).
Map Change Fails
- Verify the map path is correct. Incorrect paths will cause the command to fail silently.
- Check that the map exists in the game's current version. Maps may be added or renamed in updates.
Players Bypassing Bans
- Bans are typically tied to Steam IDs. If a player is using a different Steam account, the ban will not apply.
- Consider using a server password for private games instead of relying solely on bans.
Server Crashes After Config Changes
- Delete the modified INI files and restart the server to regenerate defaults.
- Make changes one at a time so you can identify which setting caused the issue.
- If crashes persist, open a support ticket with the error messages from the GPanel console.
Related Articles
- Midnight Ghost Hunt Server Setup Guide
- How to Find Your Server IP and Port
- How to Upload Files via SFTP
- Server Startup Guide
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.