Anvil
Anvil.API.NwServer Class Reference
+ Inheritance diagram for Anvil.API.NwServer:
+ Collaboration diagram for Anvil.API.NwServer:

Public Member Functions

void AddBannedCDKey (string cdKey)
 Bans the provided public CD key. More...
 
void AddBannedIP (string ip)
 Bans the provided IP. More...
 
void AddBannedPlayerName (string playerName)
 Bans the provided player/community name.
More...
 
bool DeletePlayerTURD (string playerId, string characterName)
 Delete the TURD of playerName + characterName. More...
 
string GetAliasPath (string alias)
 Gets the absolute path defined for the given directory alias (see nwn.ini). More...
 
void RemoveBannedCDKey (string cdKey)
 Removes the ban on the provided public CD key. More...
 
void RemoveBannedIP (string ip)
 Removes the ban on the provided IP. More...
 
void RemoveBannedPlayer (string playerName)
 Removes the ban on the provided player/community name. More...
 
void ShutdownServer ()
 Signals the server to immediately shutdown. More...
 

Properties

string BannedList [get]
 Gets a list of all banned IPs/Keys/names as a string. More...
 
bool DebugCombat [get, set]
 Gets or sets if combat debugging is enabled. This prints additional information to the combat log for hit and damage calculation. More...
 
bool DebugHitDie [get, set]
 Gets or sets if hit die debugging is enabled. More...
 
bool DebugMode [get, set]
 Gets or sets if debug mode is enabled, allowing all players to use DM commands and enabling various other debug behaviours. More...
 
bool DebugMoveSpeed [get, set]
 Gets or sets if move speed debugging is enabled. This causes all alive creatures to periodically say a message of their current movement speed. More...
 
bool DebugSaveThrows [get, set]
 Gets or sets if saving throw debugging is enabled. More...
 
string DMPassword [get, set]
 Gets or sets the current DM password. More...
 
static NwServer Instance = null! [get]
 
bool IsActivePaused [get, set]
 Gets or sets if the server is "active" paused - same as if a player requested pause. More...
 
bool IsTimestopPaused [get]
 Gets if the server is paused as a result of Effect.TimeStop. More...
 
string PlayerPassword [get, set]
 Gets or sets the current player password. More...
 
ServerInfo ServerInfo = null! [get]
 Gets server configuration and display info. More...
 
Version ServerVersion = null! [get, set]
 Gets the version of this server. More...
 
string UserDirectory = null! [get, set]
 Gets the absolute path of the server's home directory (-userDirectory). More...
 
WorldTimer WorldTimer = null! [get]
 Gets the server world timer. More...
 

Member Function Documentation

◆ AddBannedCDKey()

void Anvil.API.NwServer.AddBannedCDKey ( string  cdKey)
inline

Bans the provided public CD key.

Parameters
cdKeyThe public CD key to ban.

◆ AddBannedIP()

void Anvil.API.NwServer.AddBannedIP ( string  ip)
inline

Bans the provided IP.

Parameters
ipThe IP address to ban.

◆ AddBannedPlayerName()

void Anvil.API.NwServer.AddBannedPlayerName ( string  playerName)
inline

Bans the provided player/community name.

Warning
Players can change their player name at will.
Parameters
playerNameThe player name to ban.

◆ DeletePlayerTURD()

bool Anvil.API.NwServer.DeletePlayerTURD ( string  playerId,
string  characterName 
)
inline

Delete the TURD of playerName + characterName.

At times a PC may get stuck in a permanent crash loop when attempting to login. This function allows administrators to delete their Temporary User Resource Data where the PC's current location is stored allowing them to log into the starting area.

Parameters
playerIdThe community (login name) of the player. If CD Key TURDs are enabled (NWNX_TWEAKS_TURD_BY_CDKEY), this is the player's CD key.
characterNameThe character name.
Returns
true if the TURD was successfully deleted.

◆ GetAliasPath()

string Anvil.API.NwServer.GetAliasPath ( string  alias)
inline

Gets the absolute path defined for the given directory alias (see nwn.ini).

Parameters
aliasThe alias name.
Returns
The path defined for the specified alias, otherwise null if the alias could not be found.

◆ RemoveBannedCDKey()

void Anvil.API.NwServer.RemoveBannedCDKey ( string  cdKey)
inline

Removes the ban on the provided public CD key.

Parameters
cdKeyThe public CD key to unban.

◆ RemoveBannedIP()

void Anvil.API.NwServer.RemoveBannedIP ( string  ip)
inline

Removes the ban on the provided IP.

Parameters
ipThe IP Address to unban.

◆ RemoveBannedPlayer()

void Anvil.API.NwServer.RemoveBannedPlayer ( string  playerName)
inline

Removes the ban on the provided player/community name.

Parameters
playerNameThe player name to unban.

◆ ShutdownServer()

void Anvil.API.NwServer.ShutdownServer ( )
inline

Signals the server to immediately shutdown.

Property Documentation

◆ BannedList

string Anvil.API.NwServer.BannedList
get

Gets a list of all banned IPs/Keys/names as a string.

◆ DebugCombat

bool Anvil.API.NwServer.DebugCombat
getset

Gets or sets if combat debugging is enabled. This prints additional information to the combat log for hit and damage calculation.

◆ DebugHitDie

bool Anvil.API.NwServer.DebugHitDie
getset

Gets or sets if hit die debugging is enabled.

◆ DebugMode

bool Anvil.API.NwServer.DebugMode
getset

Gets or sets if debug mode is enabled, allowing all players to use DM commands and enabling various other debug behaviours.

◆ DebugMoveSpeed

bool Anvil.API.NwServer.DebugMoveSpeed
getset

Gets or sets if move speed debugging is enabled. This causes all alive creatures to periodically say a message of their current movement speed.

◆ DebugSaveThrows

bool Anvil.API.NwServer.DebugSaveThrows
getset

Gets or sets if saving throw debugging is enabled.

◆ DMPassword

string Anvil.API.NwServer.DMPassword
getset

Gets or sets the current DM password.

◆ IsActivePaused

bool Anvil.API.NwServer.IsActivePaused
getset

Gets or sets if the server is "active" paused - same as if a player requested pause.

◆ IsTimestopPaused

bool Anvil.API.NwServer.IsTimestopPaused
get

Gets if the server is paused as a result of Effect.TimeStop.

◆ PlayerPassword

string Anvil.API.NwServer.PlayerPassword
getset

Gets or sets the current player password.

◆ ServerInfo

ServerInfo Anvil.API.NwServer.ServerInfo = null!
get

Gets server configuration and display info.

◆ ServerVersion

Version Anvil.API.NwServer.ServerVersion = null!
getset

Gets the version of this server.

◆ UserDirectory

string Anvil.API.NwServer.UserDirectory = null!
getset

Gets the absolute path of the server's home directory (-userDirectory).

◆ WorldTimer

WorldTimer Anvil.API.NwServer.WorldTimer = null!
get

Gets the server world timer.


The documentation for this class was generated from the following file: