Skip to content

Rewards

Ben edited this page Mar 21, 2016 · 32 revisions

VoteSites.yml and BonusReward.yml follow the same rules for rewards

Different possible rewards are Items, Money, Commands

Money:

* Can give money directly if vault is installed

* Another option is to use commands to give money if you wish

*** Money Example

# Example gives $500 to player, set to 0 for none (Requires vault)
# You could also use a command
VoteSites:
  PMC:
    Money: 500

Items:

####* Can have a name, lore, enchants, chance to give item

*** Item Example

# Voting sites - Example gives 1 diamond with name and lore specified
VoteSites:
  # SiteName (Can be anything, just don't have 2 the same name)
  PMC:
    # items
    Items:
      # item (can be anything, just don't have 2 the same)
      Diamond:
        # Chance for item giving, out of 100
        # Set to 100 or 0 for always
        Chance: 40
        # item id
        id: 264
        # item data
        Data: 0
        # item amount
        Amount: 1
        # name - set to '' (that's 2 ') for no name, e.g Name: ''
        Name: '&4Example'
        # lore - set to '' (that's 2 ') for no lore, e.g Lore: ''
        Lore:
        - '&4Line 1'
        # Enchants - do not enter this below if you don't want enchants
        # Example gives Protection and Unbreaking 1
        # Enchants can be found here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/enchantments/Enchantment.html
        Enchants:
          PROTECTION_ENVIRONMENTAL: 1
          DURABILITY: 1

Commands:

* Issue commands from console or as player

*** Command Example

# Example runs console command 'say Example command: PLAYERNAME' and player command 'vote total'
VoteSites:
  # SiteName (Can be anything, just don't have 2 the same name)
  PMC:
    # Commands to run on vote (when player is online)
    # use %player% for the player's name
    Commands:
      # Console commands
      Console:
      - 'say Example command: %player%'
      # Player commands
      Player:
      - 'vote total'
Clone this wiki locally