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
 
 public class ClientConnectEvent extends Event implements 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.
- 
- 
Constructor SummaryConstructors Constructor Description ClientConnectEvent(SocketAddress socketAddress, ListenerInfo listener)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)ListenerInfogetListener()Listener that accepted the connection.SocketAddressgetSocketAddress()Remote address of connection.inthashCode()booleanisCancelled()Cancelled state.voidsetCancelled(boolean cancelled)Cancelled state.StringtoString()
 
- 
- 
- 
Constructor Detail- 
ClientConnectEventpublic ClientConnectEvent(SocketAddress socketAddress, ListenerInfo listener) 
 
- 
 - 
Method Detail- 
isCancelledpublic boolean isCancelled() Cancelled state.- Specified by:
- isCancelledin interface- Cancellable
- Returns:
- the cancelled state of this event
 
 - 
getSocketAddresspublic SocketAddress getSocketAddress() Remote address of connection.
 - 
getListenerpublic ListenerInfo getListener() Listener that accepted the connection.
 - 
setCancelledpublic void setCancelled(boolean cancelled) Cancelled state.- Specified by:
- setCancelledin interface- Cancellable
- Parameters:
- cancelled- the state to set
 
 - 
canEqualprotected boolean canEqual(Object other) 
 
- 
 
-