Paste #17324: Edit of P#17322 - Voting script

Date: 2015/07/03 12:28:56 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


VoteCheckWorld:
    type: world
    events:
        on votifier vote:
        - define player "<context.username>"
        - announce "<blue>[<green><bold>Vote Announcer<blue>]<green> %player%, thanks for voting!"
        - flag global vote:+:1
        - flag player vote:+:1
        - run GivevoteReward

GivevoteReward:
    type: task
    script:
    - give to:<player.inventory> i@Get1FreeVotesItem

Get1FreeVotesItem:
    type: item
    material: i@paper
    display name: <gold><bold>1 Vote!
    enchantments:
    - "durability:10"
    lore:
    - "<dark_gray>You can claim 1 vote reward with this paper!"