@jsprismarine/raknet
Version:
Basic RakNet implementation written in TypeScript
83 lines • 2.28 kB
TypeScript
export declare class ServerName {
private readonly server;
private motd;
private name;
private protocol;
private version;
private maxPlayers;
private onlinePlayers;
private gamemode;
private serverId;
/**
* Create a new server name for a RakNet server.
* @param {any} server - The server instance.
*/
constructor(server: any);
/**
* Get the message of the day.
* @returns {string} the message of the day.
*/
getMotd(): string;
/**
* Set the message of the day.
* @param {string} motd - The message of the day.
*/
setMotd(motd: string): void;
/**
* Get the server name.
* @returns {string} The server name.
*/
getName(): string;
/**
* Set the server name.
* @param {string} name - The server name.
*/
setName(name: string): void;
/**
* Get the protocol version.
* @returns {number} The protocol version.
*/
getProtocol(): number;
/**
* Set the protocol version.
* @param {number} protocol - The protocol version.
*/
setProtocol(protocol: number): void;
/**
* Get the version of the server.
* @returns {string} The version of the server.
*/
getVersion(): string;
/**
* Set the version of the server.
* @param {string} version - The version of the server.
*/
setVersion(version: string): void;
/**
* Get the amount of online players.
* @returns {number} The amount of online players.
*/
getOnlinePlayerCount(): number;
/**
* Set the amount of online players.
* @param {number} count - The amount of online players.
*/
setOnlinePlayerCount(count: number): void;
/**
* Get the maximum amount of players.
* @returns {number} The maximum amount of players.
*/
getMaxPlayerCount(): number;
/**
* Set the maximum amount of players.
* @param {number} count - The maximum amount of players.
* @returns {void}
*/
setMaxPlayerCount(count: number): void;
getGamemode(): string;
setGamemode(gamemode: string): void;
getServerId(): bigint;
setServerId(id: bigint): void;
toString(): string;
}
//# sourceMappingURL=ServerName.d.ts.map