Class LoginListener

java.lang.Object
adhdmc.simplepms.listeners.LoginListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class LoginListener extends Object implements org.bukkit.event.Listener
  • Field Details

    • spyingPlayers

      private final HashSet<org.bukkit.entity.Player> spyingPlayers
    • spyToggle

      private final org.bukkit.NamespacedKey spyToggle
  • Constructor Details

    • LoginListener

      public LoginListener()
  • Method Details

    • onPlayerLogin

      public void onPlayerLogin(org.bukkit.event.player.PlayerLoginEvent loginEvent)
      Adds players to the 'spyingPlayers' set on login. Requires the social spy permission, and having toggled socialspy on
      Parameters:
      loginEvent - PlayerLoginEvent