No description
Find a file
2022-07-17 16:12:26 +01:00
.github/workflows fix(ci): Update GitHub Actions to use Java 17 to build 2021-12-12 16:46:13 +00:00
gradle/wrapper chore: Update to Minecraft 1.18.1 2021-12-12 16:41:24 +00:00
media Add icon files 2021-09-09 21:13:18 +01:00
src/main fix: nullable warning 2022-07-17 16:12:26 +01:00
.gitignore Small amount of code cleanup 2021-09-09 21:07:07 +01:00
build.gradle.kts fix: switch from Log4J to SLF4J 2022-06-17 19:07:11 +10:00
gradle.properties fix(ci): Gradle OOM on Actions 2021-12-12 16:53:02 +00:00
gradlew chore: Update to Minecraft 1.18.1 2021-12-12 16:41:24 +00:00
gradlew.bat Initial commit 2021-07-30 20:53:09 +01:00
libs.versions.toml feat: update to mc 1.19 2022-06-17 17:56:13 +10:00
LICENSE Add license file 2021-07-30 20:56:33 +01:00
README.md Make the default placeholder configurable 2021-08-13 15:38:39 +01:00
settings.gradle.kts Initial commit 2021-07-30 20:53:09 +01:00

Player Pronouns

Let players share their pronouns!

For players

Commands

To change your displayed pronouns, you can use the command /pronouns. It 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, although it is not recommended to do so permanently.

For server owners

Configuration

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.

Reloading the config

You can reload the config file using the command /pronouns reload-config. This requires either OP level 4 or the permission playerpronouns.reload_config.

Adding custom pronouns (eg. neo-pronouns)

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.

Setting the default placeholder

You can configure the default text returned by the placeholder when a player does not have pronouns set by changing the default_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.

Displaying pronouns

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.
In chat with Styled Chat

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}

On the tab list with Styled Player List

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
}

Backing up the database

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.