
InsureInv
Inventory insurance that makes death less punishing, while keeping risk and balance
Оцените первым
70
1
Список изменений
🌍 Per-Player Language System
Players can now choose their preferred language — messages are served individually based on each player's selection.
| Command | Description |
|---|---|
/insureinv setlang <language> | Set your preferred language |
/insureinv setlang | View current language & available options |
- Language preference persisted via Bukkit's
PersistentDataContainer - Tab completion dynamically suggests all loaded languages
- Fully hot-reloadable —
/insureinv reloadrefreshes all translations without restart
📄 locales.yml — Admin-Configurable Language Registry
A new config file at plugins/InsureInv/locales.yml gives server admins full control over available languages:
languages:
en_US:
file: en_US.yml
vi_VN:
file: vi_VN.yml
pirate: # Custom identifier — no naming restrictions!
file: pirate_speak.yml
How to add a custom language
- Copy an existing translation file from
plugins/InsureInv/lang/ - Translate the messages in your new file
- Place it in
plugins/InsureInv/lang/ - Add an entry in
locales.ymlwith your chosen key and file name - Run
/insureinv reload
[!NOTE] Translation files are loaded from the data folder (
plugins/InsureInv/lang/), not from the JAR. Admins can edit translations directly on disk.
🆕 Bundled Languages
| Language | Key | File |
|---|---|---|
| 🇺🇸 English (US) | en_US | en_US.yml |
| 🇬🇧 English (UK) | en_GB | en_GB.yml |
| 🇻🇳 Vietnamese | vi_VN | vi_VN.yml |
| 🇫🇷 French | fr_FR | fr_FR.yml |
| 🇯🇵 Japanese | ja_JP | ja_JP.yml |
🔧 Internal Improvements
- Atomic i18n reload —
I18nManagerusesAtomicReferencefor thread-safe bootstrap swapping during reloads, eliminating race conditions where concurrent message lookups could receive stale or null data - Merged
langreload→reload— a single/insureinv reloadnow handles config, storage, and language reloads - Library update —
hyticallib-i18n-coreno longer enforces ISO locale codes (xx_XX), enabling fully custom language identifiers
⚠️ Known Limitations
[!CAUTION]
- Translations for
fr_FRandja_JPare AI-generated and may contain inaccuracies — community contributions welcome- Custom language file hot-reloading has not been extensively tested under heavy production load
- This build has not undergone full QA — edge cases may exist
- Breaking changes may occur in future pre-releases without prior notice
Метаданные
Канал релиза
Release
Номер версии
v1.3.0
Загрузчики
FoliaPaperPurpur
Версии игры
1.20.1–1.21.11
Загрузок
18
Дата публикации
26.02.2026
