Hello guys, I will add a multi language to my Plugins! I will create folder "languages" in the Plguin folder with files "en_EN.yml" "de_DE.yml" but i can use or get it? my source -> github
new File(your plugin folder + the language setting + ".yml"); then load the file with YamlConfiguration.
new File(your plugin folder + languageSetting + ".yml"); The language setting would depend on the value in the config. So, languageSetting is a String variable that would be whatever the value you get from the config.
yes i have it done. but does it have to create the "Languages" folder and the .yml file itself or can I drag them as standard configs into the resources folder and they will be loaded automatically? For infos check my Code please! Github
Then look at the documentation for saveResource() Check if the file exists. If it doesn't, create the necessary directories, and call saveResource.
Code (Java): FieUtils.copyInputStreamToFile(this.getResource("languages/file.yml"), new File("languages/anotherfile.yml"));