Package net.md_5.bungee.api.event
Class ClientConnectEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
net.md_5.bungee.api.event.ClientConnectEvent
- All Implemented Interfaces:
Cancellable
Event called to represent an initial client connection.
Note: This event is called at an early stage of every connection, handling should be fast.
Note: This event is called at an early stage of every connection, handling should be fast.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Listener that accepted the connection.Remote address of connection.int
hashCode()
boolean
Cancelled state.void
setCancelled
(boolean cancelled) Cancelled state.toString()
-
Constructor Details
-
ClientConnectEvent
-
-
Method Details
-
isCancelled
public boolean isCancelled()Cancelled state.- Specified by:
isCancelled
in interfaceCancellable
- Returns:
- the cancelled state of this event
-
getSocketAddress
Remote address of connection. -
getListener
Listener that accepted the connection. -
setCancelled
public void setCancelled(boolean cancelled) Cancelled state.- Specified by:
setCancelled
in interfaceCancellable
- Parameters:
cancelled
- the state to set
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-