Overview
TheIClanData interface provides methods to access and modify clan information, including membership, permissions, skills, storage, and Discord integration.
Interface Methods
Basic Information
Returns the clan’s internal name identifier.
Sets the clan’s internal name identifier.Parameters:
name- The clan’s internal name
Returns the clan’s custom display name with formatting.
Sets the clan’s custom display name.Parameters:
customName- The formatted display name
Returns the UUID or username of the clan owner.
Sets the clan owner.Parameters:
owner- The owner’s identifier
Returns the clan’s message or description.
Sets the clan’s message.Parameters:
message- The clan message
Scoring and Points
Returns the clan’s current score.
Sets the clan’s score.Parameters:
score- The score value
Returns the clan’s war points.
Sets the clan’s war points.Parameters:
warPoint- The war point value
Returns the number of warnings the clan has received.
Sets the clan’s warning count.Parameters:
warning- The warning count
Membership
Returns a list of all clan member identifiers.
Sets the clan’s member list.Parameters:
members- List of member identifiers
Returns the maximum number of members allowed in the clan.
Sets the maximum member limit.Parameters:
maxMembers- The maximum number of members
Metadata
Returns the clan creation timestamp in milliseconds.
Sets the clan creation timestamp.Parameters:
createdDate- Unix timestamp in milliseconds
Icon Configuration
Returns the type of icon used for the clan (MATERIAL, CUSTOMHEAD, or PLAYERHEAD).
Sets the clan icon type.Parameters:
itemType- The icon type from ItemType enum
Returns the value/identifier for the clan icon.
Sets the clan icon value.Parameters:
iconValue- Material name, head texture, or player name
Location
Returns the clan’s spawn point location.
Sets the clan spawn point.Parameters:
spawnPoint- Bukkit Location object
Alliances
Returns a list of allied clan names.
Sets the clan’s ally list.Parameters:
allies- List of allied clan names
Returns a list of pending ally invitations.
Sets the pending ally invitation list.Parameters:
allyInvitation- List of clan names with pending invitations
Skills and Permissions
Returns a map of skill IDs to their levels.
Sets the clan’s skill levels.Parameters:
skillLevel- Map of skill ID to level
Returns a map of permissions (subjects) to the minimum rank required.
Sets the clan’s permission configuration.Parameters:
subjectPermission- Map of Subject to Rank
Discord Integration
Returns the linked Discord channel ID.
Sets the Discord channel ID.Parameters:
discordChannelID- Discord channel ID
Returns the Discord server invite link.
Sets the Discord invite link.Parameters:
discordJoinLink- Discord invite URL
Storage
Returns a map of storage page numbers to Bukkit Inventory objects.
Sets the clan’s storage inventories.Parameters:
inventory- Map of page number to Inventory
Returns the maximum number of storage pages available.
Sets the maximum storage pages.Parameters:
maxStorage- Maximum number of storage pages
Usage Example
See Also
- IPlayerData - Player data interface
- Enums - Enum types used in data models
- ClanPlus Interface - Main API interface
