🛠
Garry's Mod Server Setup
How to edit server.properties
Do you want to edit the settings for your Minecraft server? This article will explain how to change certain functions of your server.
This process will require your server to be restarted. If you do not know how to do this, please see this article here.
1. Login to the Modern Hosting Game Panel, select your server, and then click on the “File Manager” button on the left sidebar.
2. Open your server’s configuration file for Minecraft, located at:
Server.properties
3. Make any necessary changes, and then click “Save File” to save your changes.
4. "Restart" your server using the button on the console page so that your changes will take effect.
A full list of settings and their functions can be found here. Please note that Modern Hosting is publishing this link as a resource, and we are not responsible for content on external links.
Key
Default Value
Description
allow-flight
false
Allows users to use flight on the server while in Survival mode, if they have a mod that provides flight installed.
With allow-flight enabled, griefers may become more common, because it makes their work easier. In Creative mode, this has no effect.false - Flight is not allowed (players in air for at least 5 seconds get kicked).true - Flight is allowed, and used if the player has a fly mod installed.
allow-nether
true
Allows players to travel to the Nether.false - Nether portals do not work.true - The server allows portals to send players to the Nether.
broadcast-console-to-ops
true
Send console command outputs to all online operators.
broadcast-rcon-to-ops
true
Send rcon console command outputs to all online operators.
difficulty
easy
Defines the difficulty (such as damage dealt by mobs and the way hunger and poison affects players) of the server.
If a legacy difficulty number is specified, it is silently converted to a difficulty name.peaceful (0)easy (1)normal (2)hard (3)
enable-command-block
false
Enables command blocks
enable-jmx-monitoring
false
Exposes an MBean with the Object name net.minecraft.server:type=Server and two attributes averageTickTime and tickTimes exposing the tick times in milliseconds.
In order for enabling JMX on the Java runtime you also need to add a couple of JVM flags to the startup as documented here.
enable-rcon
false
Enables remote access to the server console.
sync-chunk-writes
true
Enables synchronous chunk writes.
enable-status
true
Makes the server appear as "online" on the server list.
If set to false, it will suppress replies from clients. This means it will appear as offline, but will still accept connections.
enable-query
false
Enables GameSpy4 protocol server listener. Used to get information about server.
entity-broadcast-range-percentage
100
Controls how close entities need to be before being sent to clients. Higher values means they'll be rendered from farther away, potentially causing more lag. This is expressed the percentage of the default value. For example, setting to 50 will make it half as usual. This mimics the function on the client video settings (not unlike Render Distance, which the client can customize so long as it's under the server's setting).
force-gamemode
false
Force players to join in the default game mode.false - Players join in the gamemode they left in.true - Players always join in the default gamemode.
function-permission-level
2
Sets the default permission level for functions.
See #op-permission-level for the details on the 4 levels.
gamemode
survival
Defines the mode of gameplay.
If a legacy gamemode number is specified, it is silently converted to a gamemode name.survival (0)creative (1)adventure (2)spectator (3)
generate-structures
true
Defines whether structures (such as villages) can be generated.false - Structures are not generated in new chunks.true - Structures are generated in new chunks.
Note: Dungeons still generate if this is set to false.
generator-settings
blank
The settings used to customize world generation. Follow its format and write the corresponding JSON string. Remember to escape all : with \:.
hardcore
false
If set to true, server difficulty is ignored and set to hard and players are set to spectator mode if they die.
level-name
world
The "level-name" value is used as the world name and its folder name. The player may also copy their saved game folder here, and change the name to the same as that folder's to load it instead.Characters such as ' (apostrophe) may need to be escaped by adding a backslash before them.
Copy link