Yamakaja / commanditems

Assign commands to items
https://www.spigotmc.org/resources/command-items.42556/
MIT License
9 stars 15 forks source link

saveDefaultConfig Function to fix Warning #14

Closed MrFlacko closed 4 years ago

MrFlacko commented 4 years ago

There is a warning that shows up when you first add the plugin, then restart you server after it has already created the config file. The plugin tries to add a config file there even though there is already one. It causes a warning. This function only adds a config file if there isn't already one there.