public final class ConnectEvent extends Event
Indicates that the server has accepted a new socket.
This event will always occur before any InputEvent
s for this
connection and before the connection's DisconnectEvent
.
Event.Type
Modifier and Type | Field and Description |
---|---|
Connection |
connection
The new connection.
|
SERVER_START_EVENT, SERVER_STOP_EVENT, type
public final Connection connection