Hello all! It's been a year, but the next update of AdvancedGift has finally arrived, and it's a huge one! This will be a long-ish post; the changelog is at bottom.
Most of the plugin messages now can be customized in any way you like in any language. The few that are still hardcoded are the startup message and exception message, both of which are not visible to players. Preferred locale can be set in the config. Currently the plugin officially supports locales "en_US," which is English, and "sas_SY," which is a silly made-up locale.
Here's an example.
en_US:
sas_SY:
Along with that I've also added a new command called "/agtranslate" which is a way to create a customizable translation file. You can specify a locale you want to customize for, or use the command as is to use the locale set in the config. The customizable file can be found in "AdvancedGift/translations" folder. The command requires permission "advancedgift.translate"
Aside from those, the update has a few smaller changes including GPLv3 license on the source code, an improvement to the command system, and a few bug fixes.
Sidenote:
I would love to add official support for more languages, but I only know English and American Sign Language, broke, and don't trust machine translators to translate correctly. If you really want to, you may translate the plugin in another language and share the translation file on the GitHub or Discord, and I will add the translation in the next update with your credit!
Changelog:
- Implemented customizable plugin messages
- Added a new command - /agtranslate (locale)
- Added a new permission - advancedgift.translate
- Improved command system
- More consistent behavior across commands
- Adding "?" after a command will output command usage
- Command usage for /gift is more in-depth
- Fixed the world list for interworld gift restriction being improperly updated during runtime
- Fixed hidden players showing up in list of matches for /gift
- Fixed armor and offhand slots being checked when searching through the inventory for a partially filled slot
- Added GPLv3 license