Skip to content

config.yml Configuration

The config.yml file is the heart of the ECosmetics plugin. Here you can configure everything from the database connection to the mechanics of cosmetics and integrations with other plugins.

Main Settings

These parameters define the key behavior of the plugin.

ParameterTypeDescription
permissionstrue/falseA very important parameter. Determines how players receive cosmetics. false (default): cosmetics are stored in the database and must be given via commands. true: cosmetics are granted via permissions, for example, through LuckPerms.
debugtrue/falseEnables debug mode. Additional information about the plugin's operation will appear in the console. Useful for finding errors.
show-all-cosmetics-in-menutrue/falseIf true, the menu will display all existing cosmetic items, even those unavailable to the player. Unavailable items will look different. If false, the player will only see the cosmetics they own.
main-menustringThe ID of the menu from the menus.yml file that will be opened with the /ecosmetics command. Default: hat.

Attention!

Changing the permissions parameter from false to true (or vice versa) on a live server may cause players to lose access to their cosmetics. Choose the operating mode in advance.

Database

These settings are responsible for storing player data.

ParameterTypeDescription
MySQL.enabledtrue/falseIf true, the plugin will use MySQL. If false (default), the local SQLite database (cosmetics.db) will be used.
MySQL.hoststringThe IP address or domain of your MySQL server.
MySQL.portnumberThe port of your MySQL server (default is 3306).
MySQL.userstringThe username for connecting to the database.
MySQL.passwordstringThe user's password for connecting to the database.
MySQL.databasestringThe name of the database the plugin will use.
MySQL.tablestringThe name of the table for storing data. Default: player_cosmetics.
MySQL.optionsstringAdditional connection parameters for MySQL (e.g., useSSL=false).

Wardrobe Zone

Settings related to the interactive zone for trying on cosmetics.

ParameterTypeDescription
leave-wardrobe-gamemodestringThe game mode that will be set for the player after leaving the wardrobe zone. Possible values: SURVIVAL, CREATIVE, ADVENTURE, SPECTATOR. If not specified, the original mode will be restored.
zones-hide-itemstrue/falseIf true, the player's inventory will be temporarily cleared upon entering the zone and restored upon leaving.
zones-actionstrue/falseIf true, commands from zones.yml will be executed upon entering (on_enter) and leaving (on_exit) the zone.
bossbar-colorstringThe color of the boss bar displayed in the zone. Possible values: PINK, BLUE, RED, GREEN, YELLOW, PURPLE, WHITE.

Cosmetic Settings

These parameters affect the operation of specific types of cosmetics.

ParameterTypeDescription
spray-keystringThe key combination for using a spray. Possible values: SHIFT_F, SHIFT_E, SHIFT_Q, SHIFT_LC, SHIFT_RC, SHIFT_JUMP, API.
spray-stay-timenumberThe time in seconds that the spray will be visible on a surface.
spray-cooldownnumberThe time in seconds a player must wait before using a spray again.
balloons-rotationnumber (float)The rotation speed of balloons.
worlds-blacklistlist of stringsA list of worlds where cosmetics will be automatically hidden and plugin commands will be disabled.

Integrations

Settings for interacting with other plugins.

ParameterTypeDescription
placeholder-apitrue/falseEnables PlaceholderAPI support. Requires a server restart (not a plugin reload) to register.
luckperms-serverstringUsed for LuckPerms if you want cosmetic permissions to be granted only on a specific server (context). Leave empty if not needed.

Other Settings

ParameterTypeDescription
proxytrue/falseEnable if your server is running on a BungeeCord or Velocity network for correct data synchronization.
equip-messagetrue/falseIf true, a message will be sent to the player in chat when equipping a cosmetic.
save-data-delaynumberThe interval in seconds at which player data is saved to the database.
on_execute_cosmeticsstringThe command that will be executed on behalf of the player when they open the menu (/ecosmetics).