Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- prefix: &8(&BMystical&fTokens&8)
- line: &7&m------------------[&r &b&l&oMystical&f&oTokens &7&m]------------------
- startamount: 1
- token-balance: &7You have &a&o%{token::balance::%player%}% &7token(s).
- permission-admin: token.admin
- invalid-command: &7Invalid command, use &a&o/token help &7for more info!
- on first join:
- add 1 to {Mysticaltokens.%player%}
- on script load:
- set {Mysticaltokens} to true
- on script unload:
- set {Mysticaltokens} to false
- #---------------------------------------------------------------------------------------------------
- #kill event monsters
- #---------------------------------------------------------------------------------------------------
- on death of a zombie:
- if chance of 10%:
- drop 1 sunflower named "&BMystical&fToken" with lore "&7&lRight Click to redeem" at victim
- on death of a skeleton:
- if chance of 10%:
- drop 1 sunflower named "&BMystical&fToken" with lore "&7&lRight Click to redeem" at victim
- on death of a creeper:
- if chance of 10%:
- drop 1 sunflower named "&BMystical&fToken" with lore "&7&lRight Click to redeem" at victim
- on death of a enderman:
- if chance of 10%:
- drop 1 sunflower named "&BMystical&fToken" with lore "&7&lRight Click to redeem" at victim
- on death of a blaze:
- if chance of 5%:
- drop 1 sunflower named "&BMystical&fToken" with lore "&7&lRight Click to redeem" at victim
- #---------------------------------------------------------------------------------------------------
- #commands
- #---------------------------------------------------------------------------------------------------
- command /token [<text>] [<text>] [<text>]:
- trigger:
- if arg-1 is not "bal" or "pay" or "help" or "?" or "shop":
- message "{@prefix} {@invalid-command}"
- stop
- if arg 1 is "help" or "?":
- message "{@line}"
- message "&e/token help: Mysticaltokens info"
- message "&e/token pay: give tokens to an outher player"
- message "&e/token bal: shows how much tokens you got"
- message "&e/token shop: comming soon"
- if arg 1 is "bal":
- send "{@prefix} &7You currently have &e%{mobcoins.%player%}% &7tokens"
- if arg 1 is "pay":
- set {_player} to arg 2 parsed as offlineplayer
- set {_text} to arg 3
- set {_mysticaltoken} to {_text} parsed as integer
- if arg 2 is not set:
- message "&4 can not understand the command use /token pay playername amount"
- stop
- if arg 3 is not set:
- message "&4 can not understand the command use /token pay playername amount"
- stop
- if {_mysticaltoken} is less than or equal to 0:
- message "&4you cant pay negative tokens to someone"
- if arg 2 is set:
- if arg 3 is set:
- if {Mysticaltoken::balance::%player%} is less than {_mysticaltoken}:
- message "&4You dont have enough tokens to pay"
- stop
- else:
- remove {_Mysticaltoken} from {Mysticaltoken::balance::%player%}
- add {_Mysticaltoken} to {Mysticaltoken::balance::%{_player}%}
- message "{@prefix} &eYou have succesfully send {_Mysticaltoken} to {_player}"
- message "{@prefix} &eyou have received {_Mysticaltoken} from %player%"
- stop
- #---------------------------------------------------------------------------------------------------
- #---------------------------------------------------------------------------------------------------
- #right click event
- #---------------------------------------------------------------------------------------------------
- on rightclick:
- if player is holding 64 sunflower named "&BMystical&fToken" with lore "&7&lRight Click to redeem":
- cancel event
- #----------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment