HubServer

Undocumented in source.
class HubServer : PlayerHandler, Server {}

Constructors

this
this(bool lite, Config config, Plugin[] plugins, string[] args)
Undocumented in source.

Members

Functions

acceptNode
bool acceptNode(Address address)
Undocumented in source. Be warned that the author may not have intended to support it.
add
void add(AbstractNode node)
Undocumented in source. Be warned that the author may not have intended to support it.
handleCommand
void handleCommand(string command, ubyte origin, Address sender, int commandId)

Handles a command.

handleLog
void handleLog(string node, Log.Message[] messages, ulong timestamp, int commandId, int worldId, string worldName)

Handles a log.

nodeById
shared(AbstractNode) nodeById(uint id)
Undocumented in source. Be warned that the author may not have intended to support it.
nodeByName
shared(AbstractNode) nodeByName(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
onBedrockClientRequestChunkRadius
void onBedrockClientRequestChunkRadius(Client client, uint viewDistance)
Undocumented in source. Be warned that the author may not have intended to support it.
onClientJoin
void onClientJoin(Client client)
Undocumented in source. Be warned that the author may not have intended to support it.
onClientLeft
void onClientLeft(Client client)
Undocumented in source. Be warned that the author may not have intended to support it.
onClientPacket
void onClientPacket(Client client, ubyte[] packet)
Undocumented in source. Be warned that the author may not have intended to support it.
onJavaClientClientSettings
void onJavaClientClientSettings(Client client, string language, ubyte viewDistance, uint chatMode, bool chatColors, ubyte skinParts, uint mainHand)
Undocumented in source. Be warned that the author may not have intended to support it.
playerFromId
shared(PlayerSession) playerFromId(immutable(uint) id)
Undocumented in source. Be warned that the author may not have intended to support it.
playerFromIdentifier
shared(PlayerSession) playerFromIdentifier(ubyte[] idf)
Undocumented in source. Be warned that the author may not have intended to support it.
remove
void remove(AbstractNode node)
Undocumented in source. Be warned that the author may not have intended to support it.
shutdown
void shutdown()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

config
const(Config) config [@property getter]
download
uint download [@property getter]

Gets the server's configuration.

full
const(bool) full [@property getter]

Indicates whether the server is full.

hasNodes
bool hasNodes [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
icon
const(Icon) icon [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
info
shared(ServerInfo) info [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
logger
Logger logger [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
mainNode
shared(AbstractNode) mainNode [@property getter]
mainNodes
shared(AbstractNode)[] mainNodes [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
maxPlayers
int maxPlayers [@property getter]

Gets the number of max players.

nextPool
ulong nextPool [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
nextUUID
UUID nextUUID [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
nodeNames
string[] nodeNames [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
nodesList
shared(AbstractNode[]) nodesList [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
onlinePlayers
uint onlinePlayers [@property getter]

Gets the number of online players.

players
shared(PlayerSession[]) players [@property getter]

Gets the online players.

plugins
const(Plugin)[] plugins [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
updateMaxPlayers
void updateMaxPlayers [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
upload
uint upload [@property getter]

Gets the server's configuration.

uptime
uint uptime [@property getter]

Gets the server's uptime in milliseconds.

Variables

eventListener
EventListener!HubServerEvent eventListener;
Undocumented in source.
id
ulong id;
Undocumented in source.
lite
bool lite;
Undocumented in source.

Inherited Members

From Server

config
const(Config) config [@property getter]

Gets the server's configuration.

files
const(Files) files [@property getter]

Gets the server's files (assets and temp files).

lang
const(LanguageManager) lang [@property getter]

Gets the server's language manager.

logger
Logger logger [@property getter]

Gets the server's logger.

plugins
const(Plugin)[] plugins [@property getter]

Gets the plugins actived on the server.

Meta