https://www.spigotmc.org/wiki/spigot-plugin-development/ Go to "Creating a blank plugin" and select your IDE.
Do you want to create a config file? The plugin.yml? This is how you create a new file (with the yml extension): "new File (getDataFolder () + File.separator + "something.yml").createNewFile ();" But you won't be able to do much with it like this, please specify what you want to use it for.
yes, " new File (getDataFolder () + File.separator + "something.yml").createNewFile (); " I just want to create a file for messages