Hi, I want my plugin to create message_en.yml inside Languages folder(also created by the same plugin) and have premade messages there that would be ready to call every time I need them.
Emm, I'm kinda able to work with the default config but I hev no idea how to work with the custom one(creating, accesing, etc..).
Here are some code snippets that might help you: Opening a YAML config (Move your mouse to reveal the content) Opening a YAML config (open) Opening a YAML config (close) Code: File configFile = new File(myPlugin.getDataFolder()); YamlConfiguration conf = YamlConfiguration.loadConfiguration(infoFile); try { conf.load(infoFile); } catch(IOException e) { // Error when loading file } catch(InvalidConfigurationException e) { // Error when parsing YAML } Saving a YAML config (Move your mouse to reveal the content) Saving a YAML config (open) Saving a YAML config (close) Code: try { conf.save(configFile); } catch(IOException e) { // Error while writing to file } Reading from this is the same as reading the regular YAML config.