#How do I put spaces in a config?

1 messages · Page 1 of 1 (latest)

vocal hemlock
#

Right now my config looks like this:

# The title that will be displayed to the player upon afking
title: '#d64238AFK'
# The subtitle that will be displayed to the player upon afking
subtitle: '#ffbb00Please move to cancel this effect'
# The amount of time (in seconds) that will take for a player to be registered as AFK
afkTime: 300

And I would like to put a space between each value like this:

# The title that will be displayed to the player upon afking
title: '#d64238AFK'

# The subtitle that will be displayed to the player upon afking
subtitle: '#ffbb00Please move to cancel this effect'

# The amount of time (in seconds) that will take for a player to be registered as AFK
afkTime: 300

How can I do that?

primal blade
#

If you're not modifying the config with code just add those spaces in to the default config in your jar

vocal hemlock
#

How do I do that?

vast sierra
#

manually

#

by editing the config file in your jar

primal blade
vocal hemlock
#

But the config is a file that is generated separately to the jar?

vast sierra
#

there will be a resources folder inside your jar file with all your config files and the plugin.yml and such included

#

liek this

vocal hemlock
#

I only see my plugin.yml there

vast sierra
#

then you have to create your config.yml file there

#

and put the default stuff in

vocal hemlock
#

Oh wow I didn't know I can do that

#

So I can put the default values and comments manually?

#

I've always just done it with code

vast sierra
#

when you call saveDefaultConfig() in your onEnable method, it will create a folder for your plugin and put the default config file in

#

yes

#

/plugins/yourplugins/config.yml

vocal hemlock
#

ohhh that makes much more sense now

#

thanks for the help!