Class ServerPorts
- Namespace
- McServerLauncher.Services
- Assembly
- McServerLauncher.dll
What a server needs from the account's tunnels: its name and the ports it listens on.
JavaPort is null when server.properties cannot be read; BedrockPort is null when
crossplay is off (a server without Bedrock owns no UDP tunnel); PlayitEnabled says whether
the server is meant to be reached through Playit at all.
public sealed record ServerPorts : IEquatable<ServerPorts>
- Inheritance
-
ServerPorts
- Implements
- Inherited Members
Constructors
ServerPorts(string, string, int?, int?, bool)
What a server needs from the account's tunnels: its name and the ports it listens on.
JavaPort is null when server.properties cannot be read; BedrockPort is null when
crossplay is off (a server without Bedrock owns no UDP tunnel); PlayitEnabled says whether
the server is meant to be reached through Playit at all.
public ServerPorts(string Id, string Name, int? JavaPort, int? BedrockPort, bool PlayitEnabled)
Parameters
Properties
BedrockPort
public int? BedrockPort { get; init; }
Property Value
- int?
Id
public string Id { get; init; }
Property Value
JavaPort
public int? JavaPort { get; init; }
Property Value
- int?
Name
public string Name { get; init; }
Property Value
PlayitEnabled
public bool PlayitEnabled { get; init; }