Interface SDBPlayer

All Known Implementing Classes:
OfflineSDBPlayer, OnlineSDBPlayer

public interface SDBPlayer
SDBPlayer interface class
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the citycolor of this SDBPlayer.
    long
    The value of System.currentTimeMillis() when the deathban of this SDBPlayer expires.
    Get the fitness object of this SDBPlayer.
    double
    Get the amount of goldshards this SDBPlayer has.
    Get a formatted string that represents the amount of goldshards this SDBPlayer has.
    int
    Get the amount of graycoins this SDBPlayer has.
    double
    Get the amount of grayshards this SDBPlayer has.
    Get a formatted string that represents the amount of grayshards this SDBPlayer has.
    Get the possibly null UUID of the player who handcuffed this SDBPlayer.
    int
    Get the level of this SDBPlayer.
    Get the levelcolor of this SDBPlayer.
    double
    Get the amount of luckyshards this SDBPlayer has.
    Get a formatted string that represents the amount of luckyshards this SDBPlayer has.
    Get the prefix of this SDBPlayer.
    Get the prefixcolor of this SDBPlayer.
    Get the current selected chatcolor of this player.
    int
    Get the online days of this SDBPlayer.
    int
    Get the online hours of this SDBPlayer.
    int
    Get the online minutes of this SDBPlayer.
    int
    Get the online seconds of this SDBPlayer.
    Get the UUID of this SDBPlayer.
    void
    handcuffPlayer(UUID handcuffedBy)
    Handcuff a player.
    boolean
    See if this SDBPlayer has chatspy enabled.
    boolean
    See if this SDBPlayer has commandspy enabled.
    boolean
    Check if player has a pending fitness reset
    boolean
    See if this SDBPlayer has staffchat muted.
    boolean
    Check if player is handcuffed.
    default boolean
    Check if a player has '&0&k' at the start of his citycolor to easily check if the player is wearing a bivak
    void
    muteStaffChat(boolean muted)
    Mute or unmute staffchat for this SDBPlayer.
    void
    muteStaffChatSilent(boolean muted)
    Mute or unmute staffchat for this SDBPlayer without communicating it through message channels.
    void
    Reset the MinetopiaSDB playerdata of this player, this does not includes fitnessdata.
    void
    setChatSpy(boolean chatspy)
    Enable or disable chatspy for this SDBPlayer.
    void
    setChatSpySilent(boolean chatspy)
    Enable or disable chatspy for this SDBPlayer without communicating it through message channels.
    void
    setCitycolor(String citycolor)
    Change the citycolor of this SDBPlayer.
    void
    Change the citycolor of this SDBPlayer without communicating it through message channels.
    void
    setCommandSpy(boolean commandspy)
    Enable or disable commandspy for this SDBPlayer.
    void
    setCommandSpySilent(boolean commandspy)
    Enable or disable commandspy for this SDBPlayer without communicating it through message channels.
    void
    setDeathbanTime(long deathbanmillis)
    Change until what value of System.currentTimeMillis() the deathban of this SDBPlayer expires.
    void
    setDeathbanTimeSilent(long deathbanmillis)
    Change until what value of System.currentTimeMillis() the deathban of this SDBPlayer expires without communicating it through message channels.
    void
    Change the fitness object of this SDBPlayer.
    void
    setFitnessReset(boolean fitnessreset)
    Enable or disable a fitnessreset for this SDBPlayer.
    void
    setFitnessResetSilent(boolean fitnessreset)
    Enable or disable a fitnessreset for this SDBPlayer without communicating it through message channels.
    void
    setGoldShards(double goldshards)
    Change the amount of goldshards this SDBPlayer has.
    void
    setGoldShardsSilent(double goldshards)
    Change the amount of goldshards this SDBPlayer has without communicating it through message channels.
    void
    setGrayCoins(int graycoins)
    Change the amount of graycoins this SDBPlayer has.
    void
    setGrayCoinsSilent(int graycoins)
    Change the amount of grayoincs this SDBPlayer has without communicating it through message channels.
    void
    setGrayShards(double grayshards)
    Change the amount of grayshards this SDBPlayer has.
    void
    setGrayShardsSilent(double grayshards)
    Change the amount of grayshards this SDBPlayer has without communicating it through message channels.
    void
    setLevel(int level, LevelChangeReason reason)
    Change the level of this SDBPlayer.
    void
    setLevelColor(String levelcolor)
    Change the levelcolor of this SDBPlayer.
    void
    Change the levelcolor of this SDBPlayer without communicating it through message channels.
    void
    setLevelSilent(int level)
    Change the level of this SDBPlayer without communicating it through message channels.
    void
    setLuckyShards(double luckyshards)
    Change the amount of luckyshards this SDBPlayer has.
    void
    setLuckyShardsSilent(double luckyshards)
    Change the amount of luckyshards this SDBPlayer has without communicating it through message channels.
    void
    setPrefix(String prefix)
    Change the prefix of this SDBPlayer.
    void
    setPrefixColor(String prefixcolor)
    Change the prefixcolor of this SDBPlayer.
    void
    Change the prefixcolor of this SDBPlayer without communicating it through message channels.
    void
    Change the prefix of this SDBPlayer without communicating it through message channels.
    void
    setSelectedChatColor(String selectedChatcolor)
    Change the selected chatcolor of this SDBPlayer.
    void
    Change the selected chatcolor of this SDBPlayer without communicating it through message channels.
    void
    setTimeDays(int days)
    Change the online days of this SDBPlayer.
    void
    Change the online days of this SDBPlayer without communicating it through message channels.
    void
    setTimeHours(int hours)
    Change the online hours of this SDBPlayer.
    void
    setTimeHoursSilent(int hours)
    Change the online hours of this SDBPlayer without communicating it through message channels.
    void
    setTimeMinutes(int minutes)
    Change the online minutes of this SDBPlayer.
    void
    setTimeMinutesSilent(int minutes)
    Change the online minutes of this SDBPlayer without communicating it through message channels.
    void
    setTimeSeconds(int seconds)
    Change the online seconds of this SDBPlayer.
    void
    setTimeSecondsSilent(int seconds)
    Change the online seconds of this SDBPlayer without communicating it through message channels.
    void
    Remove the handcuffs from a player.
  • Method Details

    • getUUID

      UUID getUUID()
      Get the UUID of this SDBPlayer.
      Returns:
      the UUID of this SDBPlayer.
    • getPrefix

      String getPrefix()
      Get the prefix of this SDBPlayer.
      Returns:
      the prefix that this SDBPlayer has.
    • setPrefix

      void setPrefix(String prefix)
      Change the prefix of this SDBPlayer.
      Parameters:
      prefix - New prefix of this SDBPlayer.
    • setPrefixSilent

      void setPrefixSilent(String prefix)
      Change the prefix of this SDBPlayer without communicating it through message channels. Please use setPrefix(String) instead.
      Parameters:
      prefix - New prefix of this SDBPlayer.
    • getPrefixColor

      String getPrefixColor()
      Get the prefixcolor of this SDBPlayer.
      Returns:
      the prefixcolor that this SDBPlayer has.
    • setPrefixColor

      void setPrefixColor(String prefixcolor)
      Change the prefixcolor of this SDBPlayer.
      Parameters:
      prefixcolor - New prefixcolor of this SDBPlayer.
    • setPrefixColorSilent

      void setPrefixColorSilent(String prefixcolor)
      Change the prefixcolor of this SDBPlayer without communicating it through message channels. Please use setPrefixColor(String) instead.
      Parameters:
      prefixcolor - New prefixcolor of this SDBPlayer.
    • getSelectedChatColor

      String getSelectedChatColor()
      Get the current selected chatcolor of this player.
      Returns:
      currently selected chatcolor of this player.
    • setSelectedChatColor

      void setSelectedChatColor(String selectedChatcolor)
      Change the selected chatcolor of this SDBPlayer.
      Parameters:
      selectedChatcolor - the newly selected chatcolor of this player.
    • setSelectedChatColorSilent

      void setSelectedChatColorSilent(String selectedChatcolor)
      Change the selected chatcolor of this SDBPlayer without communicating it through message channels. setSelectedChatColor(String)
      Parameters:
      selectedChatcolor - New prefix of this SDBPlayer.
    • getCitycolor

      String getCitycolor()
      Get the citycolor of this SDBPlayer.
      Returns:
      the citycolor that this SDBPlayer has.
    • setCitycolor

      void setCitycolor(String citycolor)
      Change the citycolor of this SDBPlayer.
      Parameters:
      citycolor - the new citycolor of this player.
    • setCitycolorSilent

      void setCitycolorSilent(String citycolor)
      Change the citycolor of this SDBPlayer without communicating it through message channels. Please use setCitycolor(String) instead.
      Parameters:
      citycolor - the new citycolor of this SDBPlayer.
    • getLevelColor

      String getLevelColor()
      Get the levelcolor of this SDBPlayer.
      Returns:
      the levelcolor that this SDBPlayer has.
    • setLevelColor

      void setLevelColor(String levelcolor)
      Change the levelcolor of this SDBPlayer.
      Parameters:
      levelcolor - the new levelcolor of this player.
    • setLevelColorSilent

      void setLevelColorSilent(String levelcolor)
      Change the levelcolor of this SDBPlayer without communicating it through message channels. Please use setLevelColor(String) instead.
      Parameters:
      levelcolor - the new levelcolor of this SDBPlayer.
    • getLevel

      int getLevel()
      Get the level of this SDBPlayer.
      Returns:
      the level that this SDBPlayer has.
    • setLevel

      void setLevel(int level, LevelChangeReason reason)
      Change the level of this SDBPlayer.
      Parameters:
      level - the new level of this player.
      reason - reason why level has been changed.
    • setLevelSilent

      void setLevelSilent(int level)
      Change the level of this SDBPlayer without communicating it through message channels. Please use setLevel(int, LevelChangeReason) instead.
      Parameters:
      level - the new level of this player.
    • hasChatspy

      boolean hasChatspy()
      See if this SDBPlayer has chatspy enabled.
      Returns:
      true if player has chatspy enabled.
    • setChatSpy

      void setChatSpy(boolean chatspy)
      Enable or disable chatspy for this SDBPlayer.
      Parameters:
      chatspy - True if player should have chatspy enabled, false if player shouldn't have it enabled.
    • setChatSpySilent

      void setChatSpySilent(boolean chatspy)
      Enable or disable chatspy for this SDBPlayer without communicating it through message channels. Please use setChatSpy(boolean) instead.
      Parameters:
      chatspy - True if player should have chatspy enabled, false if player shouldn't have it enabled.
    • hasFitnessReset

      boolean hasFitnessReset()
      Check if player has a pending fitness reset
      Returns:
      true if player has fitness reset
    • setFitnessReset

      void setFitnessReset(boolean fitnessreset)
      Enable or disable a fitnessreset for this SDBPlayer.
      Parameters:
      fitnessreset - True if player should have a pending fitnessreset, false if player shouldn't have one.
    • setFitnessResetSilent

      void setFitnessResetSilent(boolean fitnessreset)
      Enable or disable a fitnessreset for this SDBPlayer without communicating it through message channels. Please use setFitnessResetSilent(boolean) instead.
      Parameters:
      fitnessreset - True if player should have a pending fitnessreset, false if player shouldn't have one.s
    • hasCommandSpy

      boolean hasCommandSpy()
      See if this SDBPlayer has commandspy enabled.
      Returns:
      true if player has commandspy enabled.
    • setCommandSpy

      void setCommandSpy(boolean commandspy)
      Enable or disable commandspy for this SDBPlayer.
      Parameters:
      commandspy - True if player should have commandspy enabled, false if player shouldn't have it enabled.
    • setCommandSpySilent

      void setCommandSpySilent(boolean commandspy)
      Enable or disable commandspy for this SDBPlayer without communicating it through message channels. Please use setCommandSpy(boolean) instead.
      Parameters:
      commandspy - True if player should have commandspy enabled, false if player shouldn't have it enabled.
    • hasMutedStaffChat

      boolean hasMutedStaffChat()
      See if this SDBPlayer has staffchat muted.
      Returns:
      true if player has staffchat muted.
    • muteStaffChat

      void muteStaffChat(boolean muted)
      Mute or unmute staffchat for this SDBPlayer.
      Parameters:
      muted - True if player should have staffchat muted, false if player shouldn't have it muted.
    • muteStaffChatSilent

      void muteStaffChatSilent(boolean muted)
      Mute or unmute staffchat for this SDBPlayer without communicating it through message channels. Please use muteStaffChat(boolean) instead.
      Parameters:
      muted - True if player should have staffchat muted, false if player shouldn't have it muted.
    • getGrayCoins

      int getGrayCoins()
      Get the amount of graycoins this SDBPlayer has.
      Returns:
      the amount of graycoins that this SDBPlayer has.
    • setGrayCoins

      void setGrayCoins(int graycoins)
      Change the amount of graycoins this SDBPlayer has.
      Parameters:
      graycoins - the new amount of graycoins this player has.
    • setGrayCoinsSilent

      void setGrayCoinsSilent(int graycoins)
      Change the amount of grayoincs this SDBPlayer has without communicating it through message channels. Please use setGrayCoins(int) instead.
      Parameters:
      graycoins - the new amount of graycoins this player has.
    • getGoldShards

      double getGoldShards()
      Get the amount of goldshards this SDBPlayer has.
      Returns:
      the amount of goldshards that this SDBPlayer has.
    • getGoldShardsFormatted

      String getGoldShardsFormatted()
      Get a formatted string that represents the amount of goldshards this SDBPlayer has.
      Returns:
      formatted string that represents the amount of goldshards.
    • setGoldShards

      void setGoldShards(double goldshards)
      Change the amount of goldshards this SDBPlayer has.
      Parameters:
      goldshards - the new amount of goldshards this player has.
    • setGoldShardsSilent

      void setGoldShardsSilent(double goldshards)
      Change the amount of goldshards this SDBPlayer has without communicating it through message channels. Please use setGoldShards(double) instead.
      Parameters:
      goldshards - the new amount of goldshards this player has.
    • getGrayShards

      double getGrayShards()
      Get the amount of grayshards this SDBPlayer has.
      Returns:
      the amount of grayshards that this SDBPlayer has.
    • getGrayShardsFormatted

      String getGrayShardsFormatted()
      Get a formatted string that represents the amount of grayshards this SDBPlayer has.
      Returns:
      formatted string that represents the amount of grayshards.
    • setGrayShards

      void setGrayShards(double grayshards)
      Change the amount of grayshards this SDBPlayer has.
      Parameters:
      grayshards - the new amount of grayshards this player has.
    • setGrayShardsSilent

      void setGrayShardsSilent(double grayshards)
      Change the amount of grayshards this SDBPlayer has without communicating it through message channels. Please use setGrayShards(double) instead.
      Parameters:
      grayshards - the new amount of grayshards this player has.
    • getLuckyShards

      double getLuckyShards()
      Get the amount of luckyshards this SDBPlayer has.
      Returns:
      the amount of luckyshards that this SDBPlayer has.
    • getLuckyShardsFormatted

      String getLuckyShardsFormatted()
      Get a formatted string that represents the amount of luckyshards this SDBPlayer has.
      Returns:
      formatted string that represents the amount of luckyshards.
    • setLuckyShards

      void setLuckyShards(double luckyshards)
      Change the amount of luckyshards this SDBPlayer has.
      Parameters:
      luckyshards - the new amount of luckyshards this player has.
    • setLuckyShardsSilent

      void setLuckyShardsSilent(double luckyshards)
      Change the amount of luckyshards this SDBPlayer has without communicating it through message channels. Please use setLuckyShards(double) instead.
      Parameters:
      luckyshards - the new amount of luckyshards this player has.
    • getFitness

      Fitness getFitness()
      Get the fitness object of this SDBPlayer.
      Returns:
      the fitness object of this SDBPlayer.
    • setFitness

      void setFitness(Fitness fitness)
      Change the fitness object of this SDBPlayer.
      Parameters:
      fitness - The new fitness object for this SDBPlayer.
    • getTimeSeconds

      int getTimeSeconds()
      Get the online seconds of this SDBPlayer.
      Returns:
      the amount of online seconds this SDBPlayer has.
    • setTimeSeconds

      void setTimeSeconds(int seconds)
      Change the online seconds of this SDBPlayer.
      Parameters:
      seconds - the new amount of online seconds for this SDBPlayer.
    • setTimeSecondsSilent

      void setTimeSecondsSilent(int seconds)
      Change the online seconds of this SDBPlayer without communicating it through message channels. Please use setTimeHours(int) instead.
      Parameters:
      seconds - the new amount of online seconds for this SDBPlayer.
    • getTimeMinutes

      int getTimeMinutes()
      Get the online minutes of this SDBPlayer.
      Returns:
      the amount of online minutes this SDBPlayer has.
    • setTimeMinutes

      void setTimeMinutes(int minutes)
      Change the online minutes of this SDBPlayer.
      Parameters:
      minutes - the new amount of online minutes for this SDBPlayer.
    • setTimeMinutesSilent

      void setTimeMinutesSilent(int minutes)
      Change the online minutes of this SDBPlayer without communicating it through message channels. Please use setTimeHours(int) instead.
      Parameters:
      minutes - the new amount of online minutes for this SDBPlayer.
    • getTimeHours

      int getTimeHours()
      Get the online hours of this SDBPlayer.
      Returns:
      the amount of online hours this SDBPlayer has.
    • setTimeHours

      void setTimeHours(int hours)
      Change the online hours of this SDBPlayer.
      Parameters:
      hours - the new amount of online hours for this SDBPlayer.
    • setTimeHoursSilent

      void setTimeHoursSilent(int hours)
      Change the online hours of this SDBPlayer without communicating it through message channels. Please use setTimeHours(int) instead.
      Parameters:
      hours - the new amount of online hours for this SDBPlayer.
    • getTimeDays

      int getTimeDays()
      Get the online days of this SDBPlayer.
      Returns:
      the amount of online days this SDBPlayer has.
    • setTimeDays

      void setTimeDays(int days)
      Change the online days of this SDBPlayer.
      Parameters:
      days - the new amount of online days for this SDBPlayer.
    • setTimeDaysSilent

      void setTimeDaysSilent(int days)
      Change the online days of this SDBPlayer without communicating it through message channels. Please use setTimeDays(int) instead.
      Parameters:
      days - the new amount of online days for this SDBPlayer.
    • getDeathbanTime

      long getDeathbanTime()
      The value of System.currentTimeMillis() when the deathban of this SDBPlayer expires. Returns -1 when player is not deathbanned.
      Returns:
      the value of System.currentTimeMillis() when deathban expires.
    • setDeathbanTime

      void setDeathbanTime(long deathbanmillis)
      Change until what value of System.currentTimeMillis() the deathban of this SDBPlayer expires. Change to System.currentTimeMillis() to unban this player.
      Parameters:
      deathbanmillis - new value of System.currentTimeMillis() when this SDBPlayer gets unbanned.
    • setDeathbanTimeSilent

      void setDeathbanTimeSilent(long deathbanmillis)
      Change until what value of System.currentTimeMillis() the deathban of this SDBPlayer expires without communicating it through message channels. Change to System.currentTimeMillis() to unban this player.
      Parameters:
      deathbanmillis - new value of System.currentTimeMillis() when this SDBPlayer gets unbanned.
    • handcuffPlayer

      void handcuffPlayer(UUID handcuffedBy)
      Handcuff a player.
      Parameters:
      handcuffedBy - UUID of player who handcuffed this player
    • unhandcuffPlayer

      void unhandcuffPlayer()
      Remove the handcuffs from a player.
    • isHandCuffed

      boolean isHandCuffed()
      Check if player is handcuffed.
      Returns:
      true if player is handcuffed.
    • getHandcuffedBy

      UUID getHandcuffedBy()
      Get the possibly null UUID of the player who handcuffed this SDBPlayer.
      Returns:
      UUID of player who handcuffed this player
    • isWearingBivak

      default boolean isWearingBivak()
      Check if a player has '&0&k' at the start of his citycolor to easily check if the player is wearing a bivak
      Returns:
      true if user is wearing a bivak
    • reset

      void reset()
      Reset the MinetopiaSDB playerdata of this player, this does not includes fitnessdata.