Overview
TheIPlayerData interface provides methods to access and modify player information, including clan membership, rank, activity tracking, and contribution statistics.
Interface Methods
Player Identity
Returns the player’s username.
Sets the player’s username.Parameters:
playerName- The player’s Minecraft username
Returns the player’s unique identifier (UUID).
Sets the player’s UUID.Parameters:
UUID- The player’s Minecraft UUID as a string
Clan Membership
Returns the name of the clan the player belongs to, or null if not in a clan.
Sets the player’s clan membership.Parameters:
clan- The clan name, or null to remove from clan
Returns the player’s rank within their clan (LEADER, MANAGER, or MEMBER).
Sets the player’s clan rank.Parameters:
rank- The player’s rank from the Rank enum
Timestamps
Returns the timestamp when the player joined their current clan, in milliseconds.
Sets the clan join timestamp.Parameters:
joinDate- Unix timestamp in milliseconds
Returns the timestamp of the player’s last activity, in milliseconds.
Sets the last activity timestamp.Parameters:
lastActivated- Unix timestamp in milliseconds
Statistics
Returns the total score the player has contributed to their clan.
Sets the player’s total contributed score.Parameters:
scoreCollected- The cumulative score value
Usage Example
Common Use Cases
Checking Leadership Status
Calculating Membership Duration
Tracking Activity
See Also
- IClanData - Clan data interface
- Rank Enum - Clan rank enumeration
- ClanPlus Interface - Main API interface
