🏒 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