As a Myth of Empires server administrator, you have access to GM (Game Master) commands that allow you to manage players, control the environment, spawn items, and maintain server health. This guide covers admin setup, common GM commands, player management tools, and troubleshooting techniques.
Admin Setup
Before you can use GM commands in-game, you must configure the admin password and optionally add specific players to an admin list.
Setting the Admin Password
- Stop your server from GPanel.
- Open the server configuration file (e.g.,
PrivateServerTool.ini) via SFTP or GPanel's file manager. - Find or add the
AdminPasswordsetting:
[ServerSetting]
AdminPassword=YourSecureAdminPassword
- Save the file and restart your server.
Adding Admins via Config
To grant admin privileges to specific players without sharing the admin password, you can add their Steam IDs to an admin list in the server configuration. Look for an admin list section or file:
[AdminList]
76561198012345678
76561198087654321
Each line contains one Steam ID. Players on this list automatically receive admin privileges when they join the server.
Enabling Admin In-Game
If you are not on the admin list, you must authenticate each session using the admin password:
- Join your Myth of Empires server.
- Open the in-game console or chat with the appropriate key (typically Enter for chat or ~/` for console).
- Enter the GM login command with your admin password:
GM Login YourSecureAdminPassword
If authentication succeeds, you will receive a confirmation message and gain access to all GM commands. This must be done each time you connect to the server.
GM Login does not work, try GMLogin, gm login, or check the latest community documentation for your game version.
Common GM Commands
GM commands in Myth of Empires allow you to control various aspects of gameplay. Commands are entered through the in-game console or chat. The prefix is typically GM followed by the command name.
Player Management Commands
| Command | Description |
|---|---|
GM Kick <PlayerName> |
Kicks the specified player from the server. They can rejoin immediately. |
GM Ban <PlayerName> |
Bans the specified player from the server. They cannot rejoin until unbanned. |
GM Unban <PlayerName> |
Removes a ban for the specified player, allowing them to rejoin. |
GM ListPlayers |
Displays a list of all currently connected players with their names and IDs. |
GM Announce <Message> |
Broadcasts a server-wide announcement message to all players. |
Teleportation Commands
| Command | Description |
|---|---|
GM TeleportTo <PlayerName> |
Teleports you to the specified player's location. |
GM TeleportToMe <PlayerName> |
Teleports the specified player to your current location. |
GM TeleportToPos <X> <Y> <Z> |
Teleports you to specific world coordinates. |
GM Fly |
Toggles flight mode, allowing free movement in any direction. |
GM Ghost |
Toggles noclip mode, allowing you to pass through terrain and structures. |
Item and Resource Commands
| Command | Description |
|---|---|
GM GiveItem <ItemID> <Quantity> |
Gives the specified item to yourself. Requires the item's numeric ID. |
GM GiveItemToPlayer <PlayerName> <ItemID> <Qty> |
Gives an item directly to another player's inventory. |
GM AddExp <Amount> |
Grants experience points to your character. |
GM SetLevel <Level> |
Sets your character to the specified level. |
GM God |
Toggles invincibility mode. Your character takes no damage while active. |
GM Invisible |
Toggles invisibility. Other players and NPCs cannot see you. |
Time and Weather Commands
| Command | Description |
|---|---|
GM SetTime <Hour> |
Sets the in-game time to the specified hour (0-23). Example: GM SetTime 12 for noon. |
GM SetWeather <Type> |
Changes the current weather. Types may include clear, rain, storm, fog, etc. |
GM StopTime |
Freezes the day/night cycle at the current time. Useful for events or building. |
GM ResumeTime |
Resumes the normal day/night cycle after using StopTime. |
World and Entity Commands
| Command | Description |
|---|---|
GM DestroyTarget |
Destroys the entity (structure, NPC, or object) you are looking at. |
GM SpawnNPC <NpcID> <Quantity> |
Spawns the specified NPC type at your location. |
GM KillAllNPC |
Removes all wild NPCs from the map. They will respawn naturally over time. |
GM SaveWorld |
Forces an immediate world save. Always run this before shutting down the server. |
Server Management Tools
Server Save Management
Admins should perform manual saves at critical moments to protect world data:
- Before shutdown: Always run
GM SaveWorldbefore stopping the server to ensure all recent changes are preserved. - Before configuration changes: Save and then back up save files via SFTP before modifying any configuration.
- After events: Save after community events or major world changes to lock in the current state.
- Scheduled backups: Download save data from the server regularly via SFTP and store backups locally with dated filenames.
Player Monitoring
Use GM ListPlayers regularly to monitor who is online. This is useful for:
- Verifying player identities and checking for alt accounts.
- Gathering Steam IDs needed for kick, ban, or admin list operations.
- Monitoring server population to adjust max player settings if needed.
Server Announcements
Use announcements to communicate with your community:
GM Announce Server will restart in 10 minutes for maintenance.
GM Announce Rates have been boosted to 3x for the weekend!
GM Announce PvP event starting at coordinates X:5000 Y:3000 in 30 minutes.
Troubleshooting
Server Crashes
| Symptom | Likely Cause | Solution |
|---|---|---|
| Crash on startup after config change | Invalid configuration value or syntax error | Revert to the previous config file or restore default values. Check for unclosed brackets, missing values, or invalid characters. |
| Random crashes during gameplay | Memory exhaustion or entity overflow | Check GPanel for memory usage. Consider lowering MaxPlayers or clearing excessive entities with GM KillAllNPC. Restart the server to free memory. |
| Crash when spawning items/NPCs | Invalid item or NPC ID | Verify the ID is valid for the current game version. Spawning large quantities of entities at once can also cause crashes -- spawn in smaller batches. |
| Crash after game update | Config or save incompatibility | Check if the update requires config changes. Back up saves and try with fresh config files. Community patches or hotfixes may be needed. |
Connection Issues
| Issue | Solution |
|---|---|
| Server not showing in browser | Wait 5-10 minutes after startup. Verify the query port is correct. Try direct IP connection. |
| Connection timeout | Confirm the server is running in GPanel. Verify the correct game port. The server may still be loading -- check console output. |
| Version mismatch error | Ensure the game client and server are running the same version. Update the server or have players update their game client. |
| Frequent disconnects | Check for server lag by monitoring resource usage in GPanel. Lower entity counts, reduce max players, or optimize rates if the server is overloaded. |
| GM commands not working | Verify you authenticated with GM Login and the correct password. Check that AdminPassword is set in the config. Try reconnecting and re-authenticating. |
Performance Optimization
If your server is experiencing lag or poor performance, consider the following optimizations:
| Action | Impact | How To |
|---|---|---|
| Reduce max players | Medium | Lower MaxPlayers in config. Fewer players means less entity tracking and network overhead. |
| Clear wild NPCs | High | Use GM KillAllNPC periodically to prevent entity buildup. New NPCs will respawn naturally. |
| Restart regularly | High | Schedule daily restarts to clear memory leaks and refresh the server. Save the world first with GM SaveWorld. |
| Optimize rates | Low | Very high gather rates produce excessive items in the world, which can impact performance. Balance rates for enjoyment and server health. |
| Monitor resource usage | Informational | Check GPanel for CPU and memory usage trends. Consistently high usage indicates the server needs optimization or a resource upgrade. |
Related Articles
- Myth of Empires Server Setup Guide -- Initial server configuration, rates, PvP/PvE settings, and connection methods.
- How to Find Your Server IP and Port
- How to Upload Files via SFTP
- Getting Started with Your New Server