🏢 Faction System
🔍 Get User Faction Info
getUserFaction(userId)
→ Returns the name of the user's factiongetUserFactionRank(userId)
→ Returns the user's rank within their factionhasUserFaction(userId, factionName)
→ Checks if the user belongs to a specific faction
🛠️ Set User Faction Info
setUserFaction(userId, factionName)
→ Assigns a faction to the usersetUserFactionRank(userId, rank)
→ Sets the user's rank within their faction
🔎 Query Faction Members
getUsersByFaction(factionName)
→ Returns a list of user IDs belonging to the specified factiongetDefaultFactionName()
→ Returns the default faction name from config
Last updated