π’ 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