Skip to content

RainBowCreation/IGLanguages

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IGLanguages

A powerful and flexible language management plugin for Minecraft servers, supporting multiple storage types, caching, PlaceholderAPI integration, and customizable actions.


Features

  • 🌐 Multi-language support with YAML-based language files.
  • Efficient LRU translation cache for high performance.
  • 💾 Flexible storage: YAML, SQLite, or MySQL.
  • 🔗 PlaceholderAPI integration for easy use in other plugins.
  • 🛠️ Customizable join/set actions per language.
  • 🔄 Automatic migration from YAML to database storage.
  • 📝 Easy configuration via messageConfig.yml.

Configuration

messageConfig.yml Overview

  • defaultLang: Default language (e.g., pt_br). Used as fallback.
  • translationCacheSize: Max entries in the LRU cache (default: 500).
  • storage: Choose between yaml, sqlite, or mysql.
  • firstJoinActions: List of actions for players joining for the first time.
  • actionsOnSet: Per-language actions when a player sets their language.

Placeholders

  • %lang_(path)%: Gets a translation for the player.
  • %lang_player%: Gets the player's current language.
  • %lang_player_(nick)%: Gets another player's language.

Commands & Permissions

  • /lang - Main command for language management.
  • Permission: iglanguages.admin for admin actions.

Storage

  • YAML: Simple file-based storage.
  • SQLite: Local database, no setup required.
  • MySQL: Remote database, supports custom connection properties.

Automatic migration from YAML to database storage is performed on first use.


Performance

  • Uses an LRU cache to keep translations fast and memory-efficient.
  • All translations are loaded into memory at startup.
  • Database access is minimal (mainly on login/language change).

Credits

  • Developed by IceGames

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • Java 100.0%