Class OnClientConnect
Triggered when a player attempts to connect to the server (before character select).
This event can be cancelled to prevent a player from connecting to the server.
public sealed class OnClientConnect : IEvent
- Inheritance
-
OnClientConnect
- Implements
- Inherited Members
- Extension Methods
Properties
- BlockConnection
Gets or sets a value indicating whether this client connection should be prevented.
- CDKey
Gets the public CD Key of the connecting client.
- ClientPlatform
Gets the platform of the connecting client.
- ClientVersion
Gets the version of the connecting client.
- DM
Gets a value indicating whether the client is connecting as a DM (true) or player (false).
- IP
Gets the IP address of the connecting client.
- KickMessage
Gets or sets the kick message to send to the client if BlockConnection is set to true.
- PlayerName
Gets the player name of the connecting client.