Click or drag to resize

Server Methods

The Server type exposes the following members.

Methods
  NameDescription
Public methodStatic memberBlockIPAddress
Blocks an IP address from further communication with the server for a set amount of time (with wildcards allowed). Players trying to connect to the server with a blocked IP address will receive the generic "You are banned from this server." message. Players that are online on the specified IP before the block will timeout after a few seconds and, upon reconnect, will receive the same message.
Public methodStatic memberConnectNPC
Connect an NPC to the server.
Public methodStatic memberGetConsoleVariableT
Retrieve a console variable.
Public methodStatic memberGetServerTickRate
Gets the tick rate of the server.
Public methodStatic memberGetTickCount
Returns the uptime of the actual server in milliseconds.
Public methodStatic memberGetWeaponName
Gets the name of the specified weapon.
Public methodStatic memberPrint
Prints the specified message to the console.
Public methodStatic memberSendRconCommand
Sends an RCON command.
Public methodStatic memberSetWeather
Set the world weather for all players.
Public methodStatic memberSetWorldTime
Sets the world time to a specific hour.
Public methodStatic memberUnBlockIPAddress
Unblock an IP address that was previously blocked using BlockIPAddress(String, TimeSpan).
Top
See Also