Skip to main content

Create Sprays

tip

If you need additional help, we'll be happy to help you on our Discord server.

note

Spray images should be 1:1 it's recommended to use 128x128 dimensional pictures to not lose the image quality. Supported image formats are JPEG, PNG, BMP, and WEBMP.

Spray category configuration file.​

File location: plugins/BedWars1058/Addons/Cosmetics/Categories/spray.yml

Adding a new Spray cosmetic.​

  1. Get your picture and put it in the directory according to your mode.

    Folder location: plugins/BedWars1058/Addons/Cosmetics/Spray
  2. Go to the spray's configuration file and add a new row under the cosmetics path, as shown in the snippet below.

spray.yml (snippet)
your-spray-identifier:
enabled: true
obtaining-methods: # The obtaining methods (e.g COIN, PERMISSION)
material: # The icon's item material.
amount: # The icon's item amount.
enchanted: # True if you want to have an enchanted icon otherwise false.
price: # The price (e.g 5.000, 10.000, 100.000).
rarity: # The rarity (e.g common, rare, epic, legendary).
path: # Spray's picture path (e.g new_spray.png).
  1. Open your desired language file for your mode and then add a new row under the addons.cosmetics.cosmetics.spray path, as shown in the snippet below.
File location: plugins/BedWars1058/Languages/messages_(lang).yml
messages_(lang).yml (snippet)
your-spray-identifier:
display-name: # The display name for current language.
description: # The description for current language.
- 'Description line 1'
- 'Description line 2'
  1. Save all these files and restart your server.
  2. You're done, now you should see your custom Spray on the Sprays menu via /cosmetic menu spray.