Class PlayerEventListener

java.lang.Object
org.sgrewritten.stargate.listener.PlayerEventListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class PlayerEventListener extends Object implements org.bukkit.event.Listener
A listener for relevant player events such as right- or left-clicking
  • Constructor Details

    • PlayerEventListener

      public PlayerEventListener(@NotNull @NotNull LanguageManager languageManager, @NotNull @NotNull RegistryAPI registry, @NotNull @NotNull BungeeManager bungeeManager, @NotNull @NotNull BlockLoggingManager loggingCompatibility, StorageAPI storageAPI)
      Parameters:
      languageManager -

      A localized message provider

      registry -

      A registry containing all portal information

      bungeeManager -

      A manager that deals with bungee related messages

      loggingCompatibility -

      Block logger interface

      storageAPI -

      An interface to the database containing all info about portals

  • Method Details

    • onPlayerInteract

      public void onPlayerInteract(org.bukkit.event.player.PlayerInteractEvent event)
      Listens for and handles any relevant interaction events such as sign or button interaction
      Parameters:
      event -

      The triggered player interact event

    • onPlayerJoin

      public void onPlayerJoin(org.bukkit.event.player.PlayerJoinEvent event)
      Listens for any player join events that might be relevant for BungeeCord
      Parameters:
      event -

      The triggered player join event