-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Status.cs
68 lines (57 loc) · 2.12 KB
/
Status.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
namespace OpenGSQ.Responses.RakNet
{
/// <summary>
/// Represents the status response from a Minecraft server.
/// </summary>
public class Status
{
/// <summary>
/// Gets or sets the edition of the server (MCPE or MCEE for Education Edition).
/// </summary>
public string Edition { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the first line of the Message of the Day (MOTD).
/// </summary>
public string MotdLine1 { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the protocol version of the server.
/// </summary>
public int ProtocolVersion { get; set; }
/// <summary>
/// Gets or sets the version name of the server.
/// </summary>
public string VersionName { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the number of players currently on the server.
/// </summary>
public int NumPlayers { get; set; }
/// <summary>
/// Gets or sets the maximum number of players that can join the server.
/// </summary>
public int MaxPlayers { get; set; }
/// <summary>
/// Gets or sets the unique ID of the server.
/// </summary>
public string ServerUniqueId { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the second line of the Message of the Day (MOTD).
/// </summary>
public string MotdLine2 { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the game mode of the server.
/// </summary>
public string GameMode { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the numeric representation of the game mode.
/// </summary>
public int GameModeNumeric { get; set; }
/// <summary>
/// Gets or sets the IPv4 port of the server.
/// </summary>
public int PortIPv4 { get; set; }
/// <summary>
/// Gets or sets the IPv6 port of the server.
/// </summary>
public int PortIPv6 { get; set; }
}
}