Users will all belong to the same user flair group, specified in the config as the "custom" user flair group. Simply obtains the prefix for the player in-game, via the Vault API. Flair modes also decide the user flair group for their reddit user to be in (these are specified in the user flairs section of the subreddit modtools, and allow one to specify the colours for the flairs, or even css classes for them).
Also, admins can call update on users to recompute their on/off flair, without having to check what their status was beforehand.įlair ModesAs above, the component of flairs can be resolved via three modes. The "update" requirement was chosen so a user can call update without changing the state, just to process the state. If they changed it to the removed state, they don't need to update - it happens automatically. Players may change their flair state in the database by /rc flair on/off/remove, and then they may update it (sync on the subreddit) by /rc flair update. removed: they will have no flair on the subreddit, i.e neither the nor the components will be visible in their flair.Īfter a player has authenticated their reddit account, their flair is automatically set to either the on or off state, specified in the config.One additionally must specify the formatting, i.e "" will show "" for the Minecraft player "omarathon". The user flair group their flairs correspond to are specified in the config. off: only the component will be visible in their flair.
The user flair group their flairs correspond to are decided by the flair mode (more information below). on: both the and components will be visible in their flair.
Flair StatesFlairs may be in one of three states: