create
public static BungeeSignals create(Plugin plugin)Creates a bridge with its own signal bus.
me.tamkungz.signals.bungee.BungeeSignals
Small bridge from BungeeCord (and Waterfall) events to GEB-backed signals.
<p>
Common events are grouped by domain: {@link #players()}, {@link #servers()} and {@link #proxy()}. Any other
bridged event type is available through {@link #on(Class)}.
<p>
BungeeCord can only register handlers by reflecting over annotated methods, so the bridge covers a fixed list
of events (see {@link #bridgedEvents()}), all at {@code NORMAL} priority. For an event outside that list,
register a normal BungeeCord listener and fire into {@link #bus()} yourself.
public final class BungeeSignals implements EventSignalSourcepublic static BungeeSignals create(Plugin plugin)Creates a bridge with its own signal bus.
public static BungeeSignals create(Plugin plugin, SignalBus bus)Creates a bridge on an existing signal bus.
public static BungeeSignals shared()Returns the bridge shared by every plugin through the installed SignalsLib plugin.
public static SignalBus sharedBus()Returns the signal bus shared by every plugin through the installed SignalsLib plugin.
public SignalBus bus()Returns the signal bus behind this bridge.
public static Set<Class<? extends Event>> bridgedEvents()Returns the BungeeCord event types this bridge forwards.
@Override public <T extends Event> Signal<T> on(Class<T> eventType)public PlayerSignals players()Returns shortcuts for player events.
public ServerSignals servers()Returns shortcuts for backend server events.
public ProxySignals proxy()Returns shortcuts for proxy events.