Table of Contents

Class NwServer

Namespace
Anvil.API
Assembly
NWN.Anvil.dll
public sealed class NwServer
Inheritance
NwServer
Inherited Members
Extension Methods

Constructors

NwServer()

Properties

BannedList

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

DMPassword

Gets or sets the current DM password.

DebugCombat

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

DebugHitDie

Gets or sets if hit die debugging is enabled.

DebugMode

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

DebugMoveSpeed

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

Gets or sets if saving throw debugging is enabled.

Instance
IsActivePaused

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

IsTimestopPaused

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

PlayerPassword

Gets or sets the current player password.

ServerInfo

Gets server configuration and display info.

ServerVersion

Gets the version of this server.

UserDirectory

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

WorldTimer

Gets the server world timer.

Methods

AddBannedCDKey(string)

Bans the provided public CD key.

AddBannedIP(string)

Bans the provided IP.

AddBannedPlayerName(string)

Bans the provided player/community name.

DeletePlayerTURD(string, string)

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.

GetAliasPath(string)

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

RemoveBannedCDKey(string)

Removes the ban on the provided public CD key.

RemoveBannedIP(string)

Removes the ban on the provided IP.

RemoveBannedPlayer(string)

Removes the ban on the provided player/community name.

ShutdownServer()

Signals the server to immediately shutdown.