This guide covers admin controls, console commands, the permissions system, player management, world and mine management, save backups, and troubleshooting for your Return to Moria dedicated server on Legion Hosting. For initial server setup, startup variables, difficulty presets, and how to connect, see Return to Moria Server Setup Guide.
Console Commands
Return to Moria provides a server console for administration. The console must be enabled in MoriaServerConfig.ini with [Console] Enabled=true (enabled by default). Commands are entered directly in the GPanel console.
| Command | Description |
|---|---|
players |
Lists all currently connected players with their usernames. |
kick <player> |
Removes a player from the server. The player can rejoin the same session. |
block <player> |
Permanently blocks a player from joining the server. |
unblock <player> |
Removes a permanent block, allowing the player to rejoin. |
setdifficulty <preset> |
Changes the difficulty preset on the current world. Options: story, solo, normal, hard, custom. |
setcustomdifficulty <setting> <value> |
Adjusts a specific custom difficulty setting. See the Custom Difficulty section below. |
rename world <name> |
Changes the displayed world name. |
regenerateinvitecode |
Generates a new join code for the server, invalidating the previous one. |
kick command temporarily removes a player who can rejoin immediately. Use block for a permanent ban. You can also manage blocks through the MoriaServerPermissions.txt file.
Permissions System
Return to Moria uses a text-based permissions file to control what individual players can do on your server. Edit MoriaServerPermissions.txt while the server is stopped to avoid conflicts.
File Location
MoriaServerPermissions.txt
The file automatically records every player who has joined the server. You can modify their permissions by adding or removing permission tags next to their username.
Permission Levels
| Permission | Effect |
|---|---|
Blocked |
Player is banned from the server. Cannot connect. |
Default |
Standard player access. No special restrictions or privileges. |
NoConstruction |
Player cannot build or deconstruct any structures. |
QuickBuild |
Player can only build platforms and rope ladders. No full construction. |
AllConstruction |
Full building and deconstruction access. |
NoStorage |
Player cannot interact with containers or crafting stations. |
AllStorage |
Full access to all containers and crafting stations. |
Pre-Blocking Players
You can block a player before they ever join by manually adding their username to the permissions file with the Blocked status. This is useful if you know a specific player should not have access to your server.
Server Rules
You can display a custom message to all players when they join your server by editing MoriaServerRules.txt.
File Location
MoriaServerRules.txt
Enter your server rules or welcome message in this file. The text is displayed to every player upon joining. The message has a maximum length of 1024 characters.
Custom Difficulty Settings
When the difficulty preset is set to custom, you can fine-tune individual difficulty parameters. These can be set in MoriaServerConfig.ini under the [World.Create] section for new worlds, or adjusted on an existing world using the setcustomdifficulty console command.
| Setting | Description | Values |
|---|---|---|
CombatDifficulty |
Enemy damage and health scaling. | verylow, low, default, high, veryhigh |
EnemyAggression |
How frequently enemies attack and in what group sizes. | verylow, low, default, high, veryhigh |
SurvivalDifficulty |
Buff strength, despair, and stamina decay rates. | verylow, low, default, high, veryhigh |
MiningDrops |
Amount of ore and resources dropped from mining veins. | verylow, low, default, high, veryhigh |
WorldDrops |
Reward drop rates from enemies and orc encounters. | verylow, low, default, high, veryhigh |
HordeFrequency |
How often noisy actions trigger orc horde attacks. | verylow, low, default, high, veryhigh |
SiegeFrequency |
How often orcs attack your base/camp. | verylow, low, default, high, veryhigh |
PatrolFrequency |
How frequently enemy patrol groups spawn in the mines. | verylow, low, default, high, veryhigh |
Example Custom Difficulty in Config
[World.Create]
Difficulty.Preset=custom
Difficulty.CombatDifficulty=high
Difficulty.EnemyAggression=default
Difficulty.SurvivalDifficulty=low
Difficulty.MiningDrops=high
Difficulty.WorldDrops=default
Difficulty.HordeFrequency=low
Difficulty.SiegeFrequency=default
Difficulty.PatrolFrequency=default
World Management
World Types
Return to Moria supports two world types, set in the [World.Create] Type setting:
- Campaign — The story-driven experience with a progression through Moria. Recommended for most groups.
- Sandbox — Freeform exploration and building without the campaign structure. Ideal for creative play and base building.
Multiple Worlds
You can maintain multiple worlds on a single server by changing the [World] Name setting:
- Each unique world name creates a separate save file.
- To switch worlds, stop the server, change the world name in
MoriaServerConfig.ini, and restart. - Previous worlds are preserved and can be loaded again by switching back to their name.
Resetting a World
- Stop the server in GPanel.
- Open the File Manager or connect via SFTP.
- Navigate to
Moria/Saved/SaveGamesDedicated/and delete the.savfile for the world you want to reset. - Start the server. A new world will be generated using the current config settings.
Save Backups
Save File Location
Moria/Saved/SaveGamesDedicated/
Creating a Backup
- Stop the server in GPanel to ensure save data is fully written.
- Connect via SFTP or use the GPanel File Manager.
- Download all
.savfiles from the save directory. - Store the backup on your local machine or cloud storage.
Restoring a Backup
- Stop the server in GPanel.
- Upload your backed-up
.savfile toMoria/Saved/SaveGamesDedicated/via SFTP, replacing the existing file. - Ensure the world name in
MoriaServerConfig.inimatches the save file. - Start the server. It will load the restored save.
Troubleshooting
Server Not Appearing / Cannot Connect
- Verify the server is running and fully started in GPanel.
- Check the console for error messages or crash logs.
- Ensure you are using the correct join code or IP:port from the Network tab.
- If using a password, verify it matches exactly (case-sensitive).
Performance Issues / Loading Walls
- Reduce
LoadedAreaLimitinMoriaServerConfig.ini. A value of 8 works well for groups of 4 or fewer players. - If CPU usage is high, reduce
ServerFPSto 30. - Fewer connected players means fewer areas need to be loaded simultaneously.
World Not Loading
- Ensure the
[World] Namein the config matches an existing save file inMoria/Saved/SaveGamesDedicated/. - If the save file is corrupted, restore from a backup or delete it to generate a fresh world.
Players Blocked Unexpectedly
- Check
MoriaServerPermissions.txtfor the player's entry. Remove theBlockedtag if present. - Remember to stop the server before editing the permissions file.
Related Articles
- Return to Moria Server Setup Guide — Initial setup, startup variables, difficulty presets, and how to connect
- How to Find Your Server IP and Port
- How to Upload Files via SFTP
- Server Startup Guide
Need Help?
If you run into issues with your Return to Moria server that are not covered here, open a support ticket and include your server IP, a description of the problem, and any relevant console output from GPanel.