====== Settings.ini ======
This is the main server configuration. It contains things such as the server port, description, what worlds there are, whether the server authenticates users, what plugins are active etc. This file is compulsory, MCServer will refuse to run without it.

===== [Server] section =====
^ Variable    ^ Meaning ^
| Port        | List of IPv4 ports on which the server should accept incoming connections. Default is 25565 for MineCraft. Multiple values may be specified, separated by commas. |
| PortIPv6    | List of IPv6 ports on which the server should accept incoming connections. Default is 25565 for MineCraft. Multiple values may be specified, separated by commas. |
| MaxPlayers  | Number of players allowed on the server concurrently |
| Description | The text description of the server. Shown to the clients in the server list. |
| PrimaryServerVersion | The protocol version that the server will report to the clients (1.4.2+). Default is "the latest supported version", currently 47 (protocol 1.4.2). See below for list of versions |

Since version 1.4.2, Minecraft client checks the server version and refuses to connect to server of a different version, when such server is selected from the list. However, it still connects to the server if initiated by the "Direct connect" button. MCServer still supports protocols for version 1.2.5, 1.3.2 and 1.4.2, but it needs to know what version to report to the clients. That is the value of PrimaryServerVersion. Available values:
^ PrimaryServerVersion Value ^ Version ^ 1.2.5 client reaction ^ 1.3.2 client reaction ^ 1.4.2 client reaction ^
|  29  | 1.2.5 | No issues | No Issues | Refuses to connect from listing, will Direct-connect |
|  39  | 1.3.2 | No Issues | No Issues | Refuses to connect from listing, will Direct-connect |
|  47  | 1.4.2 | Broken server description | Broken server description | No issues |
|  49  | 1.4.4 |
|  51  | 1.4.6 |
|  60  | 1.5 |
|  61  | 1.5.2 |
|  73  | 1.6.1 |
|  74  | 1.6.2 |

===== [Worlds] section =====
This section defines the worlds that the server supports. One world is the default, where new players spawn. Other worlds can be created and traversed.
^ Variable     ^ Meaning ^
| DefaultWorld | Name of the folder where the default world is stored |
| World        | Name of the folder where the world is stored. May be specified multiple times for multiple worlds. Default world doesn't need a World entry |

===== [Plugins] section =====
In this section all the plugins are registered. Each plugin that is to be active needs to be in a separate variable.
^ Variable  ^ Meaning ^
| Plugin    | Enable Lua plugin with the specified name. To be used multiple times, once for each plugin |

===== [Authentication] section =====
Contents of this section decide if the server allows only authenticated users and what server is used for authentication.
^ Variable ^ Meaning ^
| Server   | The server used for authentication. Default is "session.minecraft.net" |
| Address  | Address on the server that is used for authentication. Should contain %USERNAME% and %SERVERID% which get replaced with the actual values. Default is "/game/checkserver.jsp?user=%USERNAME%&serverId=%SERVERID%" |
| Authenticate | If set to zero, authentication is not required. If set to nonzero, only authenticated users may join |


===== Example settings.ini =====
This is complete settings.ini of actual "living" test server:
<code ini>
[Server]
Port=25564
MaxPlayers=4
Description=Parallels

[Worlds]
DefaultWorld=Motorium
World=MotoriumN

[Plugins]
Plugin=Core
Plugin=ChatLog
Plugin=MagicCarpet
Plugin=ChunkWorx
Plugin=Chatty
Plugin=Rainy
Plugin=Castles

[HelpPlugin]
ShowPluginNames=1

[Physics]
Water=1

[Monsters]
AnimalsOn=1
AnimalSpawnInterval=20
Types=Spider,Chicken,Cow,Pig,Sheep,Squid,Enderman,Cavespider,Creeper,Skeleton,Slime,Spider,Zombie

[Authentication]
Server=session.minecraft.net
Address=/game/checkserver.jsp?user=%USERNAME%&serverId=%SERVERID%
Authenticate=0
</code>
