get

fun get(plugin: Plugin, dir: File = plugin.dataFolder.resolve("i18n")): I18N

Gets the I18N instance for the specified plugin.

If no instance exists, creates a new one with the default directory (plugin's data folder + "i18n").

Return

The I18N instance associated with the plugin

Parameters

plugin

The plugin for which to get the I18N instance