Untitled

 avatar
unknown
plain_text
2 years ago
2.3 kB
4
Indexable
command /givevoucher [<player>] [<text>]:
    aliases: gv
    permission: sushi.givevoucher
    permission message: &4hey xd u can't do this
    trigger:
        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 "&6&lGold Rank Voucher" to arg-1
        if arg-2 is "Jezus" or "jezus":
            give 1 paper named "&b&lJezus Rank Voucher" to arg-1
        if arg-2 is "Hell" or "hell":
            give 1 paper named "&0&lHell Rank Voucher" to arg-1
        if arg-2 is "Immortal" or "immortal":
            give 1 paper named "&a&kA&r&c&lImmortal Rank Voucher&a&kA" to arg-1
        if arg-2 is "Devil" or "devil":
            give 1 paper named "&e❄&d&lDevil Rank Voucher&e❄"
        if arg-2 is "Blade" or "blade":
            give 1 paper named "&0&kA&r&4&lBlade Rank Voucher&0&kA" to arg-1

on right click:
    if player's tool is paper named "&6&lGold 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 "&b&lJezus Rank Voucher":
        execute console command "lp user %player% parent set jezus"
        remove 1 of event-item from player's inventory
    if player's tool is paper named "&0&lHell Rank Voucher":
        execute console command "lp user %player% parent set hell"
        remove 1 of event-item from player's inventory
    if player's tool is paper named "&a&kA&r&c&lImmortal Rank Voucher&a&kA":
        execute console command "lp user %player% parent set immortal"
        remove 1 of event-item from player's inventory
    if player's tool is paper named "&e❄&d&lDevil Rank Voucher&e❄":
      execute console command "lp user %player% parent set devil"
      remove 1 of event-item from player's inventory
    if player's tool is paper named "&0&kA&r&4&lBlade Rank Voucher&0&kA":
        execute console command "lp user %player% parent set blade"
        remove 1 of event-item from player's inventory
Editor is loading...