Skip to content

Rewards

Ben edited this page Apr 2, 2016 · 32 revisions

VoteSites and BonusRewards follow the same rules for rewards

Different possible rewards are Items, Money, Commands

New in 3.0: Set rewards with commands

Money:

* Can give money directly if vault is installed

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

* Set ingame with /av VoteSites (SiteName) SetMoney (Money) or /av BonusReward SetMoney (Money)

*** Money Example

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

Items:

####* Can have a name, lore, enchants, chance to give item ####* Can set via ingame with /av VoteSites (SiteName) AddItem (Item) - HOLD ITEM IN HAND (or /av BonusReward AddItem (item))

*** Item Example

Items:
  # item (can be anything, just don't have 2 the same)
  Diamond:
    # 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

* Add ingame with /av VoteSites (SiteName) AddCommandPlayer/AddCommandConsole (CMD) - Command with the / (or /av BonusReward AddCommandPlayer/AddCommandConsole (CMD))

*** Command Example

# 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'

ChanceRewards

* You can use commands to set these to

# Rewards to give based on a chance
# Can use the same rewards as above
# Follows same rules
ChanceReward:
  # Can have more than 1 reward, works just like items above
  reward1:
    # Chance out of 1000
    # Must be an integer
    Chance: 40
    Items:
      ID: 264
      Data: 0
      Amount: 1
    Money: 1000
    Commands:
      Console:
      - 'say %player% was lucky'
Clone this wiki locally