Skip to content

Configuration

BoxCosmetics keeps its settings in plugins/BoxCosmetics/. Edit a file, then run /bc reload: no restart needed.

File What you change there
config.yml How the plugin behaves, one section per feature
menus/ Every menu's layout, titles, icons and words
messages.yml Chat and action bar texts, in MiniMessage
cosmetics/ Your cosmetic items: each top-level key in any .yml file there is one cosmetic
mobs.yml Which mobs spawn wearing cosmetics, how often, and what
  • What players wear is saved with each player's data, not in these files.
  • Who can use what is on Permissions.

Updates keep your settings

On every start and every /bc reload, the plugin checks config.yml, messages.yml, mobs.yml and each menus/ file against the copy inside the plugin jar. Your values and comments stay.

When the plugin finds It does this
A missing file Writes it fresh
A missing key Adds it with its default
An unknown key Removes it, with its comments and children
A wrong value Fixes it
An old version's value Rewrites it

The console says what it changed:

[BoxCosmetics] [ConfigSync] Added missing key: balloon.motion.max-distance
[BoxCosmetics] [ConfigSync] Removed unused key: ballon
  • A deleted or misspelled key comes back at its default. To turn a setting off, change its value.
  • A key left with no value, such as max:, stays in the file as it is, and the plugin uses its default.
  • cosmetics/ is never changed. modeldata:, custom-buttons:, your areas under showcase.areas, your rooms under dressing-rooms.rooms and your rules under rules in mobs.yml are never added or removed.

Write sections as blocks, not inline maps

Write every section as a block, with one key on each line. In a section written as an inline map, such as offset: {x: 0, y: 0, z: 0}, the plugin cannot add a key. When it needs to, it leaves the whole file as it is, and the console lists the keys to add by hand.

# config.yml
# Not like this: offset is an inline map, so the plugin cannot add the missing z
head:
  model:
    offset: {x: 0, y: 0.5}
# config.yml
# Like this: one key on each line
head:
  model:
    offset:
      x: 0.0
      y: 0.5
      z: 0.0

With the inline map, the console warns:

[BoxCosmetics] [ConfigSync] config.yml left untouched: its layout is one this merge cannot extend - a section written as an inline map, say.
[BoxCosmetics] [ConfigSync] Add these by hand, or delete the file for a fresh one: [head.model.offset.z]

Values it fixes

Problem What the plugin does
Text where a number, true/false or list belongs Sets the default and says so in the console
A value where a section belongs, or the reverse Sets the default and says so in the console
A key written twice Keeps the first only, and names the line it dropped
[BoxCosmetics] [ConfigSync] config.yml: balloon.max should be a number, found 'three' - set back to 2.

Text values are never checked: any text is kept as you wrote it.

A file that will not load

A YAML typo, such as a missing colon, makes a file unreadable. The plugin then drops the unreadable lines one by one, up to 20, and names each in the console. The settings on those lines go back to their defaults.

[BoxCosmetics] [ConfigSync] Dropped unreadable line 129: max 3
[BoxCosmetics] [ConfigSync] config.yml repaired - the settings that were on those lines are back at their defaults. Everything else is untouched.

If that fails, the file stays as written and the plugin runs on defaults. Fix the line the console names under this warning:

[BoxCosmetics] [ConfigSync] config.yml will not parse. Nothing was changed: built-in defaults are in use until it is fixed.

Upgrading from an older version

When a key changes its meaning in a new version, the plugin rewrites your value so that the game looks the same as before. config-version records which of these rewrites config.yml still needs.

Change Your file
balloon.offsets.position became a shift from the balloon's own spot Rewritten, so balloons stay where they were
balloon.collide became a section The old true or false goes into sides, with top-bottom: false
equipment.head became equipment.helmet Value kept
gui.yml became menus/ From gui.yml
A single enabled for both sway and bob sway.item, sway.model, bob.item, bob.model, bob.mob take its value
x under place-pictures in menus/collection.yml became shift Renamed, number kept
<name> in worn-item and <tint> in colors.listed (menus/common.yml) became {name} and <{color}> Rewritten, the rest of the text kept
  • A slot name still set to the shipped <gray>Head becomes <gray>Helmet.
  • If the result would not load, nothing changes. Other changes are listed in the Changelog.