Class PlayerSignals

java.lang.Object
me.tamkungz.signals.velocity.event.PlayerSignals

public final class PlayerSignals extends Object
Shortcuts for common Velocity player events, reached with VelocitySignals#players().

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 Details

    • PlayerSignals

      public PlayerSignals(EventSignalSource source)
      Creates the shortcuts; prefer VelocitySignals#players().
      Parameters:
      source - where the signals come from
  • Method Details

    • preLogin

      public EventSignalBuilder<com.velocitypowered.api.event.connection.PreLoginEvent> preLogin()
      Listens to PreLoginEvent.
      Returns:
      a builder for the post order option
    • login

      public EventSignalBuilder<com.velocitypowered.api.event.connection.LoginEvent> login()
      Listens to LoginEvent.
      Returns:
      a builder for the post order option
    • postLogin

      public EventSignalBuilder<com.velocitypowered.api.event.connection.PostLoginEvent> postLogin()
      Listens to PostLoginEvent.
      Returns:
      a builder for the post order option
    • disconnect

      public EventSignalBuilder<com.velocitypowered.api.event.connection.DisconnectEvent> disconnect()
      Listens to DisconnectEvent.
      Returns:
      a builder for the post order option
    • chat

      public EventSignalBuilder<com.velocitypowered.api.event.player.PlayerChatEvent> chat()
      Listens to PlayerChatEvent.
      Returns:
      a builder for the post order option
    • command

      public EventSignalBuilder<com.velocitypowered.api.event.command.CommandExecuteEvent> command()
      Listens to CommandExecuteEvent.
      Returns:
      a builder for the post order option
    • settingsChanged

      public EventSignalBuilder<com.velocitypowered.api.event.player.PlayerSettingsChangedEvent> settingsChanged()
      Listens to PlayerSettingsChangedEvent.
      Returns:
      a builder for the post order option
    • chooseInitialServer

      public EventSignalBuilder<com.velocitypowered.api.event.player.PlayerChooseInitialServerEvent> chooseInitialServer()
      Listens to PlayerChooseInitialServerEvent.
      Returns:
      a builder for the post order option