You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to make a way to (also) use a different plugin it's language files?
So that you can have custom keys, like not everything I want to translate is in normal minecraft.
It should be possible to do something like this:
@NotNullprivateInputStreamgetFileFromPluginResource(StringpluginName, Stringpath) {
Pluginplugin = PluginManager.getPlugin(pluginName);
if (plugin == null) {
thrownewIllegalArgumentException("Plugin not found! " + pluginName);
}
InputStreaminputStream = plugin.getResource(path);
// The stream holding the file contentif (inputStream == null) {
thrownewIllegalArgumentException("Filepath not found! " + path);
} else {
returninputStream;
}
}
But that is only the code to read the file, of course, but the rest should be the same, I think...
Kind regards,
Miniontoby
The text was updated successfully, but these errors were encountered:
Hi,
Would it be possible to make a way to (also) use a different plugin it's language files?
So that you can have custom keys, like not everything I want to translate is in normal minecraft.
It should be possible to do something like this:
But that is only the code to read the file, of course, but the rest should be the same, I think...
Kind regards,
The text was updated successfully, but these errors were encountered: