Repository navigation
Translations
Players receive messages using Player#getLocale(). Only English is bundled.
UTF-8 JSON files live in plugins/Permissify/languages. Start the plugin to generate en_US.json, copy it to a locale such as es_ES.json and translate the values. Restart after edits.
{
"GROUP_CREATED": "<PREFIX>&e&lGrupo <GROUP> creado."
}Partial files are supported. Missing messages fall back from the client locale (es_MX) to its language (es), then the configured server language, then bundled English.
Locale names ignore case and accept _ or -. Set language: en_US in the configuration for the server language.
Keep keys, command names, placeholders and color codes intact. PERMISSIFY_PREFIX controls <PREFIX>. Preserve list structures when translating help pages or error lists.
Invalid language files log warnings without preventing other locales from loading. Existing custom files can omit new keys and use fallback messages.
The language API has no Spigot dependency:
LanguageManager manager = api.getLanguageManager();
manager.load("es_ES", Path.of("languages", "es_ES.json"));
Language language = manager.getLanguage("es_es");
String message = language.format("GROUP_CREATED", Map.of("GROUP", "friends"));Language provides getMessage, getMessages, getPages and format. Each instance keeps its own fallback chain.