Java API
class

ServerSignals

me.tamkungz.signals.velocity.event.ServerSignals

Version
0.2.1-SNAPSHOT
Java
21
Source file
me/tamkungz/signals/velocity/event/ServerSignals.java
Repository
View source ↗

Shortcuts for common Velocity backend server events, reached with {@code VelocitySignals#servers()}.

<p>

Each method is the same as {@link EventSignalSource#on(Class)} for the named event class;

anything not listed here is still available through that method.

public final class ServerSignals

Constructors 1

ServerSignals

public ServerSignals(EventSignalSource source)

Creates the shortcuts; prefer {@code VelocitySignals#servers()}.

@param
source where the signals come from

Methods 4

preConnect

public EventSignalBuilder<ServerPreConnectEvent> preConnect()

Listens to {@link ServerPreConnectEvent}.

@return
a builder for the post order option

connected

public EventSignalBuilder<ServerConnectedEvent> connected()

Listens to {@link ServerConnectedEvent}.

@return
a builder for the post order option

postConnect

public EventSignalBuilder<ServerPostConnectEvent> postConnect()

Listens to {@link ServerPostConnectEvent}.

@return
a builder for the post order option

kicked

public EventSignalBuilder<KickedFromServerEvent> kicked()

Listens to {@link KickedFromServerEvent}.

@return
a builder for the post order option