Class StatusManager

java.lang.Object
fr.fuzeblocks.homeplugin.status.StatusManager

public class StatusManager extends Object
The type Status manager.
  • Constructor Details

    • StatusManager

      public StatusManager()
  • Method Details

    • setPlayerStatus

      public static void setPlayerStatus(org.bukkit.entity.Player player, boolean status)
      Sets player status.
      Parameters:
      player - the player
      status - the status
    • getPlayerStatus

      public static boolean getPlayerStatus(org.bukkit.entity.Player player)
      Gets player status.
      Parameters:
      player - the player
      Returns:
      the player status
    • removePlayerStatus

      public static void removePlayerStatus(org.bukkit.entity.Player player)
      Removes player status.
      Parameters:
      player - the player
    • clearAll

      public static void clearAll()
      Clears all player statuses. Useful for plugin reload or shutdown.
    • hasStatus

      public static boolean hasStatus(org.bukkit.entity.Player player)
      Checks if player has a status entry.
      Parameters:
      player - the player
      Returns:
      true if player has a status entry