Class ProfileManager

java.lang.Object
net.fateuhc.plugin.api.managers.ProfileManager

public class ProfileManager extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canSpectate(org.bukkit.entity.Player player)
    Used to check a player's spectating status.
    List<org.bukkit.entity.Player>
    Used to gather the users in a PlayerState.
    net.fateuhc.plugin.player.Profile
    Used to get a player's profile.
    Map<UUID,net.fateuhc.plugin.player.Profile>
    Used to get the list of profiles.
    int
    getSpectatorRadius(org.bukkit.entity.Player player)
    Used to check a player's spectating radius.
    void
    Used to create a player's profile.
    boolean
    isHost(org.bukkit.entity.Player player)
    Used to see if a player is the host.
    boolean
    isSpectator(org.bukkit.entity.Player player)
    Used to see if a player is a spectator.
    void
    setProfiles(Map<UUID,net.fateuhc.plugin.player.Profile> profiles)
    Used to set the list of profiles.
    void
    setSpectating(org.bukkit.entity.Player player, net.fateuhc.plugin.player.Profile profile)
    Used to set a player to spectator mode.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ProfileManager

      public ProfileManager()
  • Method Details

    • handleProfileCreation

      public void handleProfileCreation(UUID uuid, String name)
      Used to create a player's profile. This is done on the first join of the player.
      Parameters:
      uuid - Player's UUID
      name - Player's name
    • getProfile

      public net.fateuhc.plugin.player.Profile getProfile(Object object)
      Used to get a player's profile.
      Parameters:
      object - Player's UUID or Name
      Returns:
      Player's profile
    • canSpectate

      public boolean canSpectate(org.bukkit.entity.Player player)
      Used to check a player's spectating status.
      Parameters:
      player - Player's name
      Returns:
      True/False if the player can spectate
    • getSpectatorRadius

      public int getSpectatorRadius(org.bukkit.entity.Player player)
      Used to check a player's spectating radius.
      Parameters:
      player - Player's Name
      Returns:
      Current player's spectator radius
    • getPlayersInState

      public List<org.bukkit.entity.Player> getPlayersInState(PlayerState playerState)
      Used to gather the users in a PlayerState.
      Parameters:
      playerState - Designate the PlayerState
      Returns:
      List of players in the designated PlayerState
    • isSpectator

      public boolean isSpectator(org.bukkit.entity.Player player)
      Used to see if a player is a spectator.
      Parameters:
      player - Player's name
      Returns:
      True/False based upon if the player is spectating
    • isHost

      public boolean isHost(org.bukkit.entity.Player player)
      Used to see if a player is the host.
      Parameters:
      player - PLayer's name
      Returns:
      True/False if the player is the host of the game
    • setSpectating

      public void setSpectating(org.bukkit.entity.Player player, net.fateuhc.plugin.player.Profile profile)
      Used to set a player to spectator mode.
      Parameters:
      player - Player's name
      profile - Player's profile
    • getProfiles

      public Map<UUID,net.fateuhc.plugin.player.Profile> getProfiles()
      Used to get the list of profiles.
      Returns:
      List of profiles
    • setProfiles

      public void setProfiles(Map<UUID,net.fateuhc.plugin.player.Profile> profiles)
      Used to set the list of profiles.
      Parameters:
      profiles - List of profiles