xBattlepass
  • xBattlepass
  • Configuration
    • How to make a BattlePass
    • How to make a Reward
    • How to make a BattleQuest
      • Configuring a Task
      • Configuring a Quest
      • Configuring a Category
  • Default Configs
    • config.yml
    • lang.yml
  • The Effects System
    • Conditions
      • has_premium_battlepass
      • has_battlepass_tier
    • Effects
      • battlepass_task_xp_multiplier
      • battlepass_xp_multiplier
      • give_battlepass_task_xp
      • give_battlepass_tier
      • give_battlepass_xp
      • set_battlepass_tier
    • Filters
      • battlepass_reward
      • battlepass_task
    • Triggers
  • Useful
    • 💼 Commands & Permissions
    • 🎯 Internal Placeholders
    • 🎯 PlaceholderAPI
    • 💻 API
  • Changelogs
    • 🐛 Versions
      • 📋 1.0.1
      • 📋 1.0.2
      • 📋 1.0.3
      • 📋 1.0.4
      • 📋 1.0.5
      • 📋 1.1.0
Powered by GitBook
On this page
  • Default configs
  • How to add rewards
  • Example Reward Config
  • Understanding the Sections
Edit on GitHub
  1. Configuration

How to make a Reward

Rewards are what the players earn for tiering up the battlepass. Without rewards, what would be the point? Thanks to libreforge, rewards don't have to just be some XP, some currency, an item. They can be Potion Effects, stat multipliers, and much more. Rewards are really easy to setup, and they are totally reusable.

Default configs

The default configs can be found here.

How to add rewards

Each skill is its own config file, placed in the /rewards/ folder, and you can add or remove them as you please. There's an example config called _example.yml to help you out!

The ID of the Reward is the file name. This is what you use in your battlepass configs, and effect filters. ID's must be lowercase letters, numbers, and underscores only.

Example Reward Config

display:
  name: "&6x&b1 &fDiamond Block"
  reward-lore:
    - "&7This is a diamond block"
    - "&7It is very valuable"

effects:
  - id: give_item
    args:
      item: DIAMOND_BLOCK 1

Understanding the Sections

The Display Options

# This is what is shown in the BattlePass GUI on the tier.
display:
  name: "&6x&b1 &fDiamond Block"
  reward-lore:
    - "&7This is a diamond block"
    - "&7It is very valuable"

If you do not want to have any lore, you can simply blank it out.

display:
  name: "&6x&b1 &fDiamond Block"
  reward-lore: [ ]

The Effects Section

# Effects are part of libreforge, you can read more below.
effects:
  - id: give_item
    args:
      item: DIAMOND_BLOCK 1

You can configure effects, conditions, filters, and mutators in this section to run when the BattlePass reward is claimed.

Other Examples:

effects:
  - id: add_holder
    args:
      effects: 
        - id: movement_speed_multiplier
          args:
            multiplier: 1.25
      conditions: []
      duration: 36000

This example grants the player a 25% Movement Speed Bonus for 30 Minutes.

effects:
  - id: run_command
    args:
      command: '/envoy flare default %player% 2'

This example runs a command from an external plugin, in this case, giving the player 2 Envoy Flares from AxEnvoy.

effects:
  - id: give_skill_xp
    args:
      amount: 100
      skill: mining

This example gives 100 Skill XP for the EcoSkills Mining skill.

PreviousHow to make a BattlePassNextHow to make a BattleQuest

Last updated 1 month ago

Check out to understand how to configure this section correctly.

For more advanced users or setups, you can configure chains in this section to string together different effects under one trigger. Check out for more info.

Configuring an Effect
Configuring an Effect Chain