Overview
TheClanManagerUtil interface provides utilities for managing clans, checking player membership, sending messages, and accessing clan statistics.
Getting the Clan Manager
Clan Verification Methods
isClanExisted()
Checks if a clan with the given name exists.The name of the clan to check
true if the clan exists, false otherwiseisPlayerInClan()
Checks if a player is in any clan.The player’s name to check
true if the player is in a clan, false otherwisePlayer object:
Clan Communication
alertClan()
Sends a message to all online members of a clan.The name of the clan to alert
The message to send to clan members
sendClanBroadCast()
Sends a clan broadcast message related to a player.The player associated with the broadcast
Player Management
addPlayerToAClan()
Adds a player to a clan with options for handling existing clan membership.The name of the player to add
The name of the clan to add the player to
If
true, removes player from their current clan before adding to new clanisPlayerRankSatisfied()
Checks if a player’s rank meets or exceeds a required rank.The player’s name to check
The minimum rank required (LEADER, MANAGER, or MEMBER)
true if player’s rank is sufficient, false otherwiseClan Statistics
getClansScoreHashMap()
Returns a map of clan names to their scores.Map of clan names to scores
getClansPlayerSize()
Returns a map of clan names to their member counts.Map of clan names to member counts
getClansWarpointHashMap()
Returns a map of clan names to their war points.Map of clan names to war points
getClansCreatedDate()
Returns a map of clan names to their creation dates (in milliseconds).Map of clan names to creation timestamps
getClansCustomName()
Returns a list of all clan custom names.List of clan custom names
Formatting Methods
getFormatClanName()
Returns the formatted display name for a clan.The clan data object
Formatted clan name
getFormatClanMessage()
Returns the formatted clan message.The clan data object
Formatted clan message
getFormatClanCustomName()
Returns the formatted clan custom name.The clan data object
Formatted clan custom name
getFormatRank()
Returns the formatted display name for a rank.The rank to format (LEADER, MANAGER, or MEMBER)
Formatted rank name
Player State Methods
getPlayerUsingClanChat()
Returns a list of players currently using clan chat.List of players in clan chat mode
getPlayerTogglingPvP()
Returns a list of players who have PvP toggled on.List of players with PvP enabled
getPlayerUsingChatSpy()
Returns a list of players using chat spy.List of players with chat spy enabled
isConsoleUsingChatSpy()
Checks if console has chat spy enabled.true if console chat spy is enabled, false otherwiseClan Storage
openClanStorage()
Opens a clan’s storage inventory for a player.The player to open the storage for
The name of the clan
The storage number to open (1-based)
If
true, bypasses disabled storage checks