#Configs

1 messages · Page 1 of 1 (latest)

spare pond
#

Is using ```this.saveDefaultConfig()`` supposed to create an empty config file if it does not exist?

neat thistle
#

In your server plugin directory, it’ll create a copy of the config.yml file you created already

pastel shard
#
This should fail silently if the config.yml already exists.```
#

as stated on the javadoc.

spare pond
#

Ah, and I create it with saveConfig()?

pastel shard
#

it should create with just saveDefaultConfig

spare pond
#

Create an empty config?

pastel shard
#

no

#

it will copy the content from config.yml inside your jar

spare pond
#

Oh, so what does saveConfig() do?

pastel shard
#

well as the name suggests

#

it saves the config

spare pond
#

Saves the config in the jar or in the server folder though?