Перейти к содержимому
Mineforgian

FediLookup

A mod which allows players to set their Fediverse address and query those of other players.

Загрузки
267
Подписчики
4
Обновлён
18 июля 2024 г.
Лицензия
MIT

Опубликован 10 июля 2024 г.

FediLookup

modrinth github

A Fabric mod for Minecraft which allows players to set their fediverse address (e.g. @[email protected]) and query those of other players.

Commands

  • /fedi who <player>
    • Shows the fedi address of a player, if they have one set.
    • Autocomplete lists all players who have set an address, including offline players.
  • /fedi reverse <address>
    • Performs a reverse search to get the Minecraft user with a given fedi address.
    • Autocomplete lists all known fedi addresses.
  • /fedi set <address>
    • Associates your Minecraft account with the given fedi address.
  • /fedi set-other <player> <address> - Requires OP
    • Associates a specified Minecraft account with the given fedi address.
  • /fedi unset
    • Removes any fedi account associations from yourself.
  • /fedi unset [<player>] - Requires OP
    • Removes any fedi account associations from a specified player.
    • Autocomplete lists all players who have set an address, including offline players.
  • /fedi reload-config - Requires OP
    • Reloads the configuration file from disk.

Configuration

There is nothing configurable at the moment. The main config file can be reloaded at runtime by an operator using /fedi reload-config.

An additional file contains the stored data about accounts and players. This file should not be manually modified unless the server is shutdown, or ideally not at all.

Ченджлог

1.3.0Релиз1.21 · 18 июля 2024 г.

Breaking Changes

Fairly minor: all the translation keys have been renamed, so if you've changed the strings or written a translation (PRs welcome, by the way) you'll have to redo that.

Otherwise everything should just work as a drop-in replacement for the old mod version, with a server restart of course.

All Changes

  • Added the new command /fedi unset <player>, which can be used by operators to unset any player's address
  • Added the new command /fedi set-other <player> <address>, which can be used by operators to set any player's address
  • Improved the translation keys. They now actually make sense as something other than a simplified version of the English text, so are better suited for anyone actually writing translations. They'll probably stay stable now (new keys can be added and keys can be removed, but I won't change the existing keys)
1.2.0Релиз1.21 · 11 июля 2024 г.

Just some minor fixes and improvements:

  • Fedi addresses returned by the mod will be copied on click in chat.
  • Command suggestions should be more performant (I added some caching so it's not querying and looping over player data on each character typed).
1.1.0Релиз1.21 · 11 июля 2024 г.

Improve command suggestions, and use server-side translations for text output rather than Placeholders (possible security fix too).

Now, the command suggestions for the /fedi who and /fedi reverse commands actually narrow what they return when more is typed, following the expected behaviour.

I've removed the bundled dependency on Text Placeholders API and added Server Translations API because I'm now using translation strings instead of text literals throughout. Theoretically, one could use a server datapack to add more languages. Pull requests adding translations are welcome, though I can't guarantee I'll accept because I only speak English so would need to find someone else to independently check for quality. This also fixes a small possible security issue I thought of (to my knowledge no-one else has found it) where someone could put a placeholder tag in their username and it would display with the placeholder evaluated in some cases.

Комментарии

Загружаем…