-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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:
@NotNull
private InputStream getFileFromPluginResource(String pluginName, String path) {
Plugin plugin = PluginManager.getPlugin(pluginName);
if (plugin == null) {
throw new IllegalArgumentException("Plugin not found! " + pluginName);
}
InputStream inputStream = plugin.getResource(path);
// The stream holding the file content
if (inputStream == null) {
throw new IllegalArgumentException("Filepath not found! " + path);
} else {
return inputStream;
}
}But that is only the code to read the file, of course, but the rest should be the same, I think...
Kind regards,
- Miniontoby
Unp1xelt
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request