Class ProxySignals
java.lang.Object
me.tamkungz.signals.velocity.event.ProxySignals
Shortcuts for common Velocity proxy events, reached with
VelocitySignals#proxy().
Each method is the same as EventSignalSource.on(Class) for the named event class;
anything not listed here is still available through that method.
-
Constructor Summary
ConstructorsConstructorDescriptionProxySignals(EventSignalSource source) Creates the shortcuts; preferVelocitySignals#proxy(). -
Method Summary
Modifier and TypeMethodDescriptionEventSignalBuilder<com.velocitypowered.api.event.proxy.ProxyInitializeEvent> Listens toProxyInitializeEvent.EventSignalBuilder<com.velocitypowered.api.event.proxy.ProxyPingEvent> ping()Listens toProxyPingEvent.EventSignalBuilder<com.velocitypowered.api.event.connection.PluginMessageEvent> Listens toPluginMessageEvent.EventSignalBuilder<com.velocitypowered.api.event.proxy.ProxyReloadEvent> reload()Listens toProxyReloadEvent.EventSignalBuilder<com.velocitypowered.api.event.proxy.ProxyShutdownEvent> shutdown()Listens toProxyShutdownEvent.
-
Constructor Details
-
ProxySignals
Creates the shortcuts; preferVelocitySignals#proxy().- Parameters:
source- where the signals come from
-
-
Method Details
-
initialize
Listens toProxyInitializeEvent.Velocity does not call handlers added while the event is already being fired, so request this signal (and connect to it) in your plugin's constructor, not from inside another
ProxyInitializeEventhandler.- Returns:
- a builder for the post order option
-
shutdown
Listens toProxyShutdownEvent.- Returns:
- a builder for the post order option
-
reload
Listens toProxyReloadEvent.- Returns:
- a builder for the post order option
-
ping
Listens toProxyPingEvent.- Returns:
- a builder for the post order option
-
pluginMessage
public EventSignalBuilder<com.velocitypowered.api.event.connection.PluginMessageEvent> pluginMessage()Listens toPluginMessageEvent.- Returns:
- a builder for the post order option
-