For devs
If you want to use this library feel free to do so. You just need to add this plugin as a dependency, add the jar to your build path and follow these instructions:
- All of your language files need to be in
yourplugin/resources/languages
and your plugin needs
en_us.yml as a language
- To add a language you just need a line of code in your onEnable Method:
Code (Java):
EasyLanguages.
SetDefaultTranslation
(pluginInstance,
"en_us"
)
;
- To get the FileConfiguration matching the server language use:
Code (Java):
EasyLanguages.
GetServerLanguage
(pluginInstance
).
getString
(
"yourString"
)