- What permissions do you give others to modify and/or maintain your submission?
- Modify: YES - Maintain: YES - I give permission for my entire submission to be modified by others or used in their own work. I give permission for my entire submission to be maintained by others as well.
- I made sure my file(s) follow the Submissions Guidelines
- Yes
- I named my file(s) correctly (see Filename Conventions)
- Yes
this addon adds the ability for players to display their pronouns in-game. the pronouns will appear in the scoreboard...
...and alongside the player tag...
in addition, the pronouns can be removed by running the command
note that there are a few limitations:
in addition, for addons that uses a custom scoreboard, the global variable
as an example, here's how it's used in the hangout server this addon was originally written for:
...and alongside the player tag...
usage
a player can set their pronouns by using thepronouns
command. once set, they are saved on the client, so you only need to apply it once. the pronouns will then be automatically restored once the addon is loaded again, either by adding it explicitly or by joining a server that has it loaded already.in addition, the pronouns can be removed by running the command
pronouns -
, and all players' pronouns can be listed in the console using the showpronouns
command.note that there are a few limitations:
- pronouns are only allowed to contain forward slash and letters.
- they're limited to a maximum of 16 characters.
- players can only set their own pronouns, not others players' pronouns (and that applies even to hosts/admins)
- pronouns will not be displayed on the scoreboard if
compactscoreboard
is enabled or there are more than 18 players on the server.
integration support
other addons can retrieve a player's pronouns from thepronouns
field on a player_t
, which is provided by the script. if this value is nil
, that player has no pronouns set, so make sure to check for that before you use that field!in addition, for addons that uses a custom scoreboard, the global variable
pronouns_showinscoreboard
can be set to false to tell the addon to not display pronouns on the scoreboard. note that since this is a global variable, care must be taken to ensure this addon is loaded first, as the variable is not defined before this addon is loaded. this is most easily done by checking that pronouns_showinscoreboard
is not nil
.as an example, here's how it's used in the hangout server this addon was originally written for: