Class ConnectionInitEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
net.md_5.bungee.api.event.AsyncEvent<ConnectionInitEvent>
io.github.waterfallmc.waterfall.event.ConnectionInitEvent
- All Implemented Interfaces:
Cancellable
Represents a brand new connection made to the proxy, allowing for plugins to
efficiently close a connection, useful for connection throttlers, etc
-
Constructor Summary
ConstructorDescriptionConnectionInitEvent
(SocketAddress remoteAddress, ListenerInfo listener, Callback<ConnectionInitEvent> done) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.BungeeCord can accept connections via Unix domain socketsboolean
Get whether or not this event is cancelled.void
setCancelled
(boolean cancel) Sets the cancelled state of this event.toString()
Methods inherited from class net.md_5.bungee.api.event.AsyncEvent
canEqual, completeIntent, equals, hashCode, postCall, registerIntent
-
Constructor Details
-
ConnectionInitEvent
public ConnectionInitEvent(SocketAddress remoteAddress, ListenerInfo listener, Callback<ConnectionInitEvent> done)
-
-
Method Details
-
isCancelled
public boolean isCancelled()Description copied from interface:Cancellable
Get whether or not this event is cancelled.- Specified by:
isCancelled
in interfaceCancellable
- Returns:
- the cancelled state of this event
-
setCancelled
public void setCancelled(boolean cancel) Description copied from interface:Cancellable
Sets the cancelled state of this event.- Specified by:
setCancelled
in interfaceCancellable
- Parameters:
cancel
- the state to set
-
getRemoteAddress
Deprecated.BungeeCord can accept connections via Unix domain sockets- Returns:
- the INetSocketAddress of the connection being opened
-
getRemoteSocketAddress
- Returns:
- the SocketAddress of the connection being opened
-
toString
- Overrides:
toString
in classAsyncEvent<ConnectionInitEvent>
-