Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /rewards [<text>] [<text>]:
- permission: rewards.use
- permission message: {@nopermission}
- trigger:
- if arg 1 is not set:
- message "&c/rewards get parkour | maze"
- if arg 1 is set:
- if arg 1 is "get":
- if arg 2 is not set:
- make player execute command "/rewards"
- stop
- if arg 2 is set:
- if arg 2 is "parkour":
- give player beacon named "&aParkour Reward"
- give player flint named "&cReward remover"
- message "&aItems received."
- if arg 2 is "maze":
- give player beacon named "&aMaze Reward"
- give player flint named "&cReward remover"
- message "&aItems received."
- on place:
- if event-block is beacon:
- if name of player's tool is "&aParkour Reward":
- set {{@databasePrefix}serverinfo.parkourreward.location.%location of event-block%} to true
- message "&aReward set."
- stop
- if event-block is beacon:
- if name of player's tool is "&aMaze Reward":
- set {{@databasePrefix}serverinfo.Mazereward.location.%location of event-block%} to true
- message "&aReward set."
- stop
- on click:
- if {{@databasePrefix}serverinfo.parkourreward.location.%location of event-block%} is set:
- if {{@databasePrefix}playerinfo.%player's uuid%.reward.%location of event-block%}:
- message "&cYou already claimed this reward."
- stop
- give player 5 diamonds
- add 500 to player's balance
- broadcast "&e%player% &bcompleted a parkour"
- set {{@databasePrefix}playerinfo.%player's uuid%.reward.%location of event-block%} to now
- if {{@databasePrefix}serverinfo.parkourreward.location.%location of event-block%} is set:
- if {{@databasePrefix}playerinfo.%player's uuid%.reward.%location of event-block%}:
- message "&cYou already claimed this reward."
- stop
- add 1000 to player's balance
- broadcast "&e%player% &bcompleted a maze"
- set {{@databasePrefix}playerinfo.%player's uuid%.reward.%location of event-block%} to now
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement