Editing
Tutorials/Setting up a server
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Minecraft options === Options for the server JAR go ''after'' the {{code|-jar minecraft_server.jar}} part. Run with <code>--help</code> to see all available arguments that can be passed to the server. Below is a list of available commandline options for the server. ; <code>--bonusChest</code> : If a [[bonus chest]] should be generated, when the world is first generated. ; <code>--demo</code> : If the server is in demo mode. (Shows the players a demo pop-up, and players cannot break or place blocks or eat if the demo time has expired) :Equivalent to playing ''Minecraft'' without a account, you have about 5 in-game days before your trial ends. ; <code>--eraseCache</code> : Erases the lighting caches, etc. Same option as when optimizing single player worlds. ; <code>--forceUpgrade</code> : Forces upgrade on all the chunks, such that the data version of all chunks matches the current server version (same as with sp worlds). :This option significantly increases the time needed to start the server. ; <code>--help</code> : Shows this help. ; <code>--initSettings</code> : Loads the settings from 'server.properties' and 'eula.txt', then quits. ; <code>--jfrprofile</code> :Initializes the Java Flight Recorder on the server. Only available on 1.18+. ; <code>--nogui</code> : Doesn't open the GUI when launching the server. : You will still be able to interact with your server, but you must use the cmd or Terminal if enabled. :* <code>nogui</code> does the same thing as this option for backward compatibility with very old versions of the server, but <code>--nogui</code> is preferable as it matches the format of other options ; <code>--safeMode</code> : Loads level with vanilla datapack only. ; <code>--serverId <String></code> : Gives an ID to the server. (??) : Used only in crash reports. If not given, then the "Server Id" detail is not added to crash reports. ; <code>--singleplayer <String></code> : Runs the server in singleplayer mode. <String> is the name of the Singleplayer player. : The Singleplayer player data is loaded from <code>Player</code> in the <samp>level.dat</samp> file. : Monsters spawn ignoring the 'spawn-monsters' property unless the [[difficulty]] is Peaceful. Animals spawn ignoring the 'spawn-animals' property. : The default [[permission level]] is 0 (ignoring the 'op-permission-level' property) unless otherwise specified for a player in ops file. : The permission level required for the {{cmd|/publish}} command is 4. Although the server is already published. : The permission level required for the {{cmd|/seed}} command is 0, not 2. : Blacklists are disabled. These commands are not available: {{cmd|/ban-ip}}, {{cmd|/banlist}}, {{cmd|/ban}}, {{cmd|/pardon}}, {{cmd|/pardon-ip}}. : The local IP is '127.0.0.1' ignoring the 'server-ip' property. Use of authentication is disabled ignoring the 'online-mode' property. Prevention of proxy connections is disabled ignoring the 'prevent-proxy-connections' property. : The default game mode (the 'gamemode' property) is still used for new players, but does not change the world's default game mode (<code>GameType</code> in the <samp>level.dat</samp> file). ; <code>--universe <String></code> : The folder in which to look for world folders. (default: {{code|.}}, the current directory) The following options are available from [[server.properties]] too. It might be a better idea to edit that file instead for easier management: ; <code>--world <String></code> : The name of the world folder in which the level.dat resides. (default: {{code|world}}) : This is the same as {{code|level-name}}. ; <code>--port <Integer></code> : Which port to listen on, overrides the server.properties value. (default: -1, read from server.properties) :See [[Server.properties]], option "server-port", for restrictions on this value.
Summary:
Please note that all contributions to Kiiw may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Kiiw:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information