🏢 Faction System

🔍 Get User Faction Info

  • getUserFaction(userId) → Returns the name of the user's faction

  • getUserFactionRank(userId) → Returns the user's rank within their faction

  • hasUserFaction(userId, factionName) → Checks if the user belongs to a specific faction

🛠️ Set User Faction Info

  • setUserFaction(userId, factionName) → Assigns a faction to the user

  • setUserFactionRank(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 faction

  • getDefaultFactionName() → Returns the default faction name from config

Last updated