Class TownyPlayerData

java.lang.Object
me.EtienneDx.RealEstate.ClaimAPI.Towny.TownyPlayerData
All Implemented Interfaces:
IPlayerData

public class TownyPlayerData extends Object implements IPlayerData
A stub implementation of IPlayerData for Towny.

Towny does not use claim blocks so these methods return zero or do nothing.

  • Constructor Details

    • TownyPlayerData

      public TownyPlayerData(UUID playerUUID)
      Constructs a new TownyPlayerData for the specified player UUID.
      Parameters:
      playerUUID - the UUID of the player
  • Method Details

    • getAccruedClaimBlocks

      public int getAccruedClaimBlocks()
      Returns the number of accrued claim blocks.

      Always returns 0 as Towny does not use claim blocks.

      Specified by:
      getAccruedClaimBlocks in interface IPlayerData
      Returns:
      0
    • getBonusClaimBlocks

      public int getBonusClaimBlocks()
      Returns the number of bonus claim blocks.

      Always returns 0 as Towny does not use claim blocks.

      Specified by:
      getBonusClaimBlocks in interface IPlayerData
      Returns:
      0
    • setAccruedClaimBlocks

      public void setAccruedClaimBlocks(int accruedClaimBlocks)
      Sets the accrued claim blocks.

      This operation is not applicable for Towny.

      Specified by:
      setAccruedClaimBlocks in interface IPlayerData
      Parameters:
      accruedClaimBlocks - the number of accrued claim blocks (ignored)
    • setBonusClaimBlocks

      public void setBonusClaimBlocks(int bonusClaimBlocks)
      Sets the bonus claim blocks.

      This operation is not applicable for Towny.

      Specified by:
      setBonusClaimBlocks in interface IPlayerData
      Parameters:
      bonusClaimBlocks - the number of bonus claim blocks (ignored)
    • getRemainingClaimBlocks

      public int getRemainingClaimBlocks()
      Returns the remaining claim blocks.

      Always returns 0 as Towny does not use claim blocks.

      Specified by:
      getRemainingClaimBlocks in interface IPlayerData
      Returns:
      0