Return to Moria Console Commands
Return to Moria dedicated servers expose a live console for server administration. On AleForge, enter commands in the Console page of the Blacksmith’s Portal while your server is running.
For kicking and blocking players, see How do I kick or block players on my Return to Moria server?.
Common tasks
Section titled “Common tasks”Rename the current world
rename world MyNewWorldNameRegenerate the join code
Run regenerateinvitecode, then restart the server. The new code appears on the Dashboard. See Connect to your server if players cannot join with the old code.
Server management commands
Section titled “Server management commands”| Command | Description |
|---|---|
help |
Lists available commands |
status |
Prints the current server status |
players |
Lists connected players |
exit |
Saves the world and stops the server |
difficulty |
Shows the server’s current difficulty settings |
regenerateinvitecode |
Generates a new join code on the next server restart |
Player management commands
Section titled “Player management commands”| Command | Description |
|---|---|
kick [playername] |
Removes a player from the server. They can rejoin the same session. |
block [playername] |
Blocks a player by name if they are online |
unblock [playername] |
Unblocks a previously blocked player |
You can also block players through MoriaServerPermissions.txt. See player permissions and kick/block guide.
Difficulty commands
Section titled “Difficulty commands”Change difficulty on a running server without creating a new world:
| Command | Description |
|---|---|
setdifficulty story |
Sets the story difficulty preset |
setdifficulty solo |
Sets the solo difficulty preset |
setdifficulty normal |
Sets the normal difficulty preset |
setdifficulty hard |
Sets the hard difficulty preset |
setdifficulty custom |
Sets custom difficulty mode |
setcustomdifficulty [name] [value] |
Sets one custom difficulty value |
Custom difficulty setting names
Section titled “Custom difficulty setting names”| Name | Startup equivalent on AleForge |
|---|---|
combatdifficulty |
Custom Combat Difficulty |
enemyaggression |
Custom Enemy Aggression |
survivaldifficulty |
Custom Survival Difficulty |
miningdrops |
Custom Mining Drops |
worlddrops |
Custom World Drops |
hordefrequency |
Custom Horde Frequency |
siegefrequency |
Custom Siege Frequency |
patrolfrequency |
Custom Patrol Frequency |
Custom difficulty values
Section titled “Custom difficulty values”verylow, low, default, high, veryhigh
Not every setting supports the full range. If you use verylow or veryhigh on a setting that does not support them, the server clamps to low or high instead.
Example:
setcustomdifficulty combatdifficulty highWorld commands
Section titled “World commands”| Command | Description |
|---|---|
rename world [name] |
Renames the current world to the given name |
To change difficulty presets or world settings for a new world, stop the server and use Startup variables instead. See How do I change world difficulty on my Return to Moria server?.