Table of Contents

Enum ServerType

Namespace
McServerLauncher.Models
Assembly
McServerLauncher.dll

What kind of server this is: which loader, if any, runs the mods or plugins.

public enum ServerType

Fields

Fabric = 1
Forge = 2
NeoForge = 4
Paper = 3
Purpur = 5
Vanilla = 0

Remarks

The numbers are part of the file format. servers.json is written with the default serializer options, so these persist as integers, not names — a real config reads "Type": 0. Inserting a member anywhere but the end silently renumbers the ones after it, and every existing Forge server on every machine would come back as something else the next time the app opened. Add to the bottom, never in the middle, and never reorder.

The values are written out explicitly so that rule is visible at the point where it could be broken, rather than implied.