프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Address | string | ||
Description | string | ||
Name | string | ||
Online | bool | ||
Ping | int |
메소드 | 설명 | |
---|---|---|
Server ( string name, string address, ushort port = 25565, string description = "", int players, int maxPlayers, int ping, bool online = false, int mode ) |
Initialize a new Server. name and address are the only required parameters, rest is optional and will be set to their default if omitted. |
|
SetMode ( int mode ) : void |
Set the mode of this server.
|
public Server ( string name, string address, ushort port = 25565, string description = "", int players, int maxPlayers, int ping, bool online = false, int mode ) | ||
name | string | Name of the server. |
address | string | Address of the server. |
port | ushort | Server's port. |
description | string | Server's description. |
players | int | Number of players currently on the server. |
maxPlayers | int | Maximum players allowed on the server. |
ping | int | Server ping. |
online | bool | Is the server online? |
mode | int | The mode of the server (0 = Survival, 1 = Creative). |