Untitled
unknown
plain_text
3 years ago
2.1 kB
8
Indexable
```command /givevoucher [<player>] [<text>]:
aliases: gv
permission: op
permission message: &4hey xd u can't do this
trigger:
if player is op:
if arg-1 isn't set:
send "&6Insert a player, then choose a rank between iron, gold, diamond, death, cursed or stolen!"
if arg-2 isn't set:
send "&6You have to insert what voucher you want to give to the player!"
if arg-2 is "Iron" or "iron":
give 1 paper named "<##cbcdcd>&lIron Rank Voucher" to arg-1
if arg-2 is "Gold" or "gold":
give 1 paper named "&6Gold Rank Voucher" to arg-1
if arg-2 is "Diamond" or "diamond":
give 1 paper named "&bDiamond Rank Voucher" to arg-1
if arg-2 is "Death" or "death":
give 1 paper named "&0Death Rank Voucher" to arg-1
if arg-2 is "Cursed" or "cursed":
give 1 paper named "&a&kA&r&4Cursed Rank Voucher&a&kA" to arg-1
if arg-2 is "Stolen" or "stolen":
give 1 paper named "&e❄&dStolen Rank Voucher&e❄" to arg-1
on right click:
if player's tool is paper named "&6Gold Rank Voucher":
execute console command "lp user %player% parent set gold"
remove 1 of event-item from player's inventory
if player's tool is paper named "&bDiamond Rank Voucher":
execute console command "lp user %player% parent set diamond"
remove 1 of event-item from player's inventory
if player's tool is paper named "&0Death Rank Voucher":
execute console command "lp user %player% parent set death"
remove 1 of event-item from player's inventory
if player's tool is paper named "&a&kA&r&4Cursed Rank Voucher&a&kA":
execute console command "lp user %player% parent set cursed"
remove 1 of event-item from player's inventory
if player's tool is paper named "&e❄&dStolen Rank Voucher&e❄":
execute console command "lp user %player% parent set stolen"
remove 1 of event-item from player's inventory```Editor is loading...