OnPlayerConnect: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(No difference)
|
Revision as of 01:21, 28 September 2019
Event
Server and Client
Online and Offline
Not Cancellable
Available since Server 1.0.0, Client 1.0.0
function(Event event, string IP, int port)
The onPlayerConnect event is invoked when player starts connecting to the server. This event is a low-level event, which is invoked before the player's name is sent to the server.
Parameters
1) | Event | event | The event object for this event. |
2) | string | IP | The IP address for the player. |
3) | int | port | The port number for the player. |
Attributes
const | This event cannot be cancelled. |
Notes
- The chronological order of player connection events are:# OnPlayerConnect.
- # OnPlayerJoin.
- # OnPlayerJoined.
- .
Examples
There aren't any examples for this event.
Compatibility
There isn't any compatibility information for this event.
Related
Server Related
OnPlayerChat
OnPlayerCommand
OnPlayerConnect
OnPlayerJoin
OnPlayerJoined
OnPlayerQuit
Client Related
OnPlayerJoin