Example 2 (rewards.yml)

This configuration includes conditions from plugins: AuraSkills and ExecutableItems.

You are NOT REQUIRED to use these plugins aswell!

reward_1: # Reward ID, must be unique from others! This is what you use when you want to add this reward at the rewards: [] inside any region configuration!
  reward_type: economy # Reward type, this can be: "economy", "exp", "level", "skill_exp", "skill_level", "command", "message" OR "item".
  economy_provider: vault # IF the reward_type is "economy" then you have 2 economy providers to choose from: Vault and CoinsEngine(https://www.spigotmc.org/resources/coinsengine-⭐-economy-and-custom-currencies.84121/)
  currency_name: money # If the economy_provider is "vault" then the currency_name can either be "" or "money". If the economy_provider is "coinsengine" then the currency_name can be the currency id that you want to use from CoinsEngine!
  modifier: add # This is the modifier, can be "add", "set" OR "remove"
  amount: 1500 # The amount of currency to "add", "set" OR "remove"
  notify: true # Should the plugin notify the player that they have had changes on their balance?

reward_2: # Another reward id, unique to others!
  reward_type: exp
  modifier: add
  amount: 25
  notify: true

reward_3: # Another reward id
  reward_type: item # Since the reward_type is "item" we need different properties!
  material: OAK_LOG # What material should be the item that will be given to the player?
  amount_range: "1-3" # This is the amount of that item that will be given to the player. If you want a normal static amount then replace this with "amount: <number 1 to 64>". If you want to have a random chance to give the player an amount from 1 to 3 for example, you leave "amount_range: '<range_from> - <range_to>'". This is completely random!
  name: '&bCustom Oak Log' # Custom name of the item, supports placeholders, color codes etc.
  lore: ["&7", "&7This is a custom item"] # Lore that the item shall have, supports color codes, placeholders etc.
  enchantments: ["UNBREAKING:3"] # Enchantments that the item has, can be any enchantment. The format goes like this: "<enchantment_name>:<level>"
  tags: [] # Items NBT Tags, this is an advanced feature. Usually not needed. This helps the plugin keep track of the items that it generates. If you dont know what this is, leave it as empty []. Format: ["tag_1", "tag_2"], will show as "eliteregen.tag_1", "eliteregen.tag_2" when you go through the items tags.
  item_flags: ["HIDE_ENCHANTS"] # Item flags that the item has. This can be used to hide enchantments lore from the item etc. If you want to look more into it, here is the link: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/inventory/ItemFlag.html
  custom_model_data: 0 # Yes, we do support custom_model_data for the items! This is used to set a custom texture to the item if you have a texture pack installed in your server! Defaults to 0.
  
reward_4:
  reward_type: skill_exp # AuraSkills exp
  skill_name: MINING # Skill Name
  modifier: add # Modifier
  amount_range: "10-15" # Amount range of the exp to give

reward_5:
  reward_type: command
  commands: # Commands to execute when this reward is given! These are all commands that are executed from the console, not the player! {0} is an internal placeholder for the plugins prefix!
    - 'say {0} Hello, world!'

reward_6:
  reward_type: message
  messages: # Messages to send to the player when this reward is given! {0} is an internal placeholder for the plugins prefix!
    - '{0} &fHello &e%player_name%&f!'

Last updated