Java API
class

PlayerSignals

me.tamkungz.signals.velocity.event.PlayerSignals

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

Shortcuts for common Velocity player events, reached with {@code VelocitySignals#players()}.

<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 PlayerSignals

Constructors 1

PlayerSignals

public PlayerSignals(EventSignalSource source)

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

@param
source where the signals come from

Methods 8

preLogin

public EventSignalBuilder<PreLoginEvent> preLogin()

Listens to {@link PreLoginEvent}.

@return
a builder for the post order option

login

public EventSignalBuilder<LoginEvent> login()

Listens to {@link LoginEvent}.

@return
a builder for the post order option

postLogin

public EventSignalBuilder<PostLoginEvent> postLogin()

Listens to {@link PostLoginEvent}.

@return
a builder for the post order option

disconnect

public EventSignalBuilder<DisconnectEvent> disconnect()

Listens to {@link DisconnectEvent}.

@return
a builder for the post order option

chat

public EventSignalBuilder<PlayerChatEvent> chat()

Listens to {@link PlayerChatEvent}.

@return
a builder for the post order option

command

public EventSignalBuilder<CommandExecuteEvent> command()

Listens to {@link CommandExecuteEvent}.

@return
a builder for the post order option

settingsChanged

public EventSignalBuilder<PlayerSettingsChangedEvent> settingsChanged()

Listens to {@link PlayerSettingsChangedEvent}.

@return
a builder for the post order option

chooseInitialServer

public EventSignalBuilder<PlayerChooseInitialServerEvent> chooseInitialServer()

Listens to {@link PlayerChooseInitialServerEvent}.

@return
a builder for the post order option