Class HUDManager

java.lang.Object
com.palmergames.bukkit.towny.huds.HUDManager
All Implemented Interfaces:
org.bukkit.event.Listener

public class HUDManager extends Object implements org.bukkit.event.Listener
  • Constructor Details

    • HUDManager

      public HUDManager(Towny plugin)
  • Method Details

    • getHUD

      @Nullable public static @Nullable ServerHUD getHUD(String name)
    • addHUD

      public static void addHUD(String name, ServerHUD hud)
    • removeHUD

      public static void removeHUD(String name)
    • toggleHUD

      public static void toggleHUD(org.bukkit.entity.Player player, String hudName)
    • togglePermHUD

      public static void togglePermHUD(org.bukkit.entity.Player p)
      Called from the /plot perm hud command.
      Parameters:
      p - Player who is toggling their perm hud.
    • toggleMapHud

      public static void toggleMapHud(org.bukkit.entity.Player player)
      Called from the /towny map hud command.
      Parameters:
      player - Player who is toggling their map hud.
    • toggleAllOff

      public static void toggleAllOff(org.bukkit.entity.Player p)
    • onPlayerQuit

      public void onPlayerQuit(org.bukkit.event.player.PlayerQuitEvent event)
    • onPlayerMovePlotsEvent

      public void onPlayerMovePlotsEvent(PlayerChangePlotEvent event)
    • onTownBlockSettingsChanged

      public void onTownBlockSettingsChanged(TownBlockSettingsChangedEvent e)
    • check

      public static String check(String string)
    • isUsingTownyHUD

      public static boolean isUsingTownyHUD(org.bukkit.entity.Player player)
    • getPermHUDUsers

      @Deprecated public static List<org.bukkit.entity.Player> getPermHUDUsers()
      Deprecated.
      since 0.102.0.8
      Returns:
      the list of perm hud users
    • getMapHUDUsers

      @Deprecated public static List<org.bukkit.entity.Player> getMapHUDUsers()
      Deprecated.
      since 0.102.0.8
      Returns:
      the list of map hud users
    • removePermHUDUser

      @Deprecated public static void removePermHUDUser(org.bukkit.entity.Player player)
      Deprecated.
      since 0.102.0.8
    • removeMapHUDUser

      @Deprecated public static void removeMapHUDUser(org.bukkit.entity.Player player)
      Deprecated.
      since 0.102.0.8
    • isPermHUDActive

      public static boolean isPermHUDActive(org.bukkit.entity.Player player)
      Deprecated.
      since 0.102.0.8
    • isMapHudActive

      public static boolean isMapHudActive(org.bukkit.entity.Player player)
      Deprecated.
      since 0.102.0.8