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
Kategorier

Midnight Ghost Hunt Admin Commands


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.

Note: Midnight Ghost Hunt is built on Unreal Engine 4. Admin functionality is primarily managed through the server configuration files and in-game admin commands. RCON support allows remote administration.

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:

  1. Log in to GPanel and select your Midnight Ghost Hunt server.
  2. Go to the Startup tab.
  3. Set the ADMIN_PASSWORD variable to a secure password.
  4. Restart the server for the change to take effect.

Logging In as Admin In-Game

Once connected to your server:

  1. Open the in-game console (press ~ tilde key).
  2. Type the admin login command:
    AdminPassword YourAdminPassword
  3. You will receive a confirmation message if the password is correct.
Keep your admin password secure. Anyone with the admin password can execute server commands. Change it immediately if it is compromised.

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
Tip: Using 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.

  1. Stop the server from GPanel.
  2. Edit Game.ini via the Files tab or SFTP.
  3. Add or remove map entries as needed.
  4. 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.
Security: Use a strong, unique RCON password. RCON provides full server control and should not be shared with untrusted users.

6. Troubleshooting

Admin Commands Not Working

  • Verify you have entered the admin password correctly using AdminPassword in the console.
  • Check that ADMIN_PASSWORD is 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

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.


Var denna artikel hjälpsam?

Ready to Get Started?

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