Let players share their pronouns!
To change your displayed pronouns, you can use the command /pronouns set
or /pronouns unset
. You can also view other player's pronouns with /pronouns show
.
/pronouns set
will suggest pronouns that are configured by the server admins, along with the default set. By default, you do not have to pick one of the suggestions at all, however server owners may disable setting custom pronouns in case of abuse, though it is not recommended to do so permanently. Server admins may also limit the length of custom pronouns, to prevent overflow when displayed, although this is also not the default.
Note
Player Pronouns needs another mod configured to actually display pronouns, otherwise users will be able to set pronouns, but will not see them anywhere.
The mod should work out of the box without any configuration, however if you want player's pronouns to be visible, you probably want to use the placeholder somewhere.
You can display the pronouns in any TextPlaceholderAPI compatible mods using the following placeholders:
playerpronouns:pronouns
: Returns a player's pronouns with any styling that is configured.playerpronouns:raw_pronouns
: Returns a player's pronouns without any styling even if configured.
Styled Chat allows you to customise the formatting of chat messages. To configure pronouns to show up like this, you can set the chat
style to the following:
<${player} [%playerpronouns:pronouns%]> ${message}
Styled Player List allows you to customise the look and feel of the tab/player list, as well as customise the formatting used for players in the list.
{
"_comment": "Ensure that you include all the other default config options",
"changePlayerName": true,
"playerNameFormat": "%player:displayname% (%playerpronouns:pronouns%)",
"updatePlayerNameEveryChatMessage": true
}
The default configuration file looks something like this, and is located in config/player-pronouns.json
:
{
"pairs": [],
"single": [],
"integrations": {
"pronoun_db": false
},
"allow_custom": true,
"default_placeholder": "Unknown",
"max_pronoun_length": -1
}
You can reload the config file using the command /pronouns reload-config
. This requires either OP level 4 or the permission playerpronouns.reload_config
.
Player Pronouns supports fetching pronouns from external services, such as PronounDB. These integrations are disabled by default, and can be enabled in the configuration file under the integrations
section.
By default, players can set their pronouns to anything they like, however you can limit this selection to only the default set and any extras defined in your configuration by setting allow_custom
to false
, however this is not recommended.
You can also limit the allowed length of custom pronouns, for example if you are displaying them in locations where space is limited. This can be done by setting max_pronoun_length
to a value >0.
Custom pronouns allow expanding the autocomplete options on the /pronouns set
command.
To add custom pronoun sets, you can use the single
and pairs
options in the config file. single
is for singular options such as any
or ask
while pairs
is for pronouns that come in pairs and are used in the form a/b
, for example they
and them
.
You can configure the default text returned by the placeholder when a player does not have pronouns set by changing thedefault_placeholder
config value. You can also override the default in particular cases by passing an argument to the placeholder like this: %playerpronouns:pronouns/ask%
(or %playerpronouns:raw_pronouns/ask%
) where ask
is the default text.
The mod stores the mapping of players -> pronouns inside the world save file at world/playerdata/pronouns.dat
. Note that the file is a custom binary format, NOT NBT, and so cannot be edited using normal tools.