Professional Documents
Culture Documents
Message
Message
Message
permission: op
executable by: console, players
trigger:
if arg-1 is set:
if arg-2 is set:
add arg-2 to {tokens::%uuid of arg-1%}
send "&6&lTokens &8┃ &eAdd &e%arg-1%'s token balance to
&6%format(arg-2)%&e."
on join:
if {tokens::%uuid of player%} is not set:
set {tokens::%uuid of player%} to 0
if arg-1 is "tokenpurchase":
if player's balance is less than 100000:
send "<##ff0000>&lERROR! <##ffa099>You do not have enough
money :("
if player's balance is more than 99999:
remove 100000 from player's balance
add 1 to {tokens::%uuid of player%}
send "<##ffdd03>&lTOKENS &8• &fYou have purchased a
&6&lTOKEN &ffor &a$100,000&f." to player
send "&7&o(You now have &e%format({tokens::%uuid of player
%})% &7&otokens)"
if arg-1 is "genslot":
if {tokens::%uuid of player%} is less than 5:
send "&6&lTokens &8┃ &cInsufficient funds."
if {tokens::%uuid of player%} is more than 4:
remove 5 from {tokens::%uuid of player%}
send "&6&lTokens &8┃ &eYou have purchased &a&l1 Gen Slot
&efor &65⛃&e."
add 1 to {GeneratorLimit::%uuid of player%}
if arg-1 is "sellwand":
if {tokens::%uuid of player%} is less than 25:
send "&6&lTokens &8┃ &cInsufficient funds."
if {tokens::%uuid of player%} is more than 24:
remove 25 from {tokens::%uuid of player%}
send "&6&lTokens &8┃ &eYou have purchased &a&l1.25x
Sellwand &efor &625⛃&e."
if arg-1 is "125sellwand":
if {tokens::%uuid of player%} is less than 25:
send "&6&lTokens &8┃ &cInsufficient funds."
if {tokens::%uuid of player%} is more than 24:
remove 25 from {tokens::%uuid of player%}
send "&6&lTokens &8┃ &eYou have purchased &a&l1.25x
Sellwand &efor &625⛃&e."
if arg-1 is "15sellwand":
if {tokens::%uuid of player%} is less than 35:
send "&6&lTokens &8┃ &cInsufficient funds."
if {tokens::%uuid of player%} is more than 34:
remove 35 from {tokens::%uuid of player%}
send "&6&lTokens &8┃ &eYou have purchased &a&l1.5x Sellwand
&efor &635⛃&e."
if arg-1 is "2sellwand":
if {tokens::%uuid of player%} is less than 50:
send "&6&lTokens &8┃ &cInsufficient funds."
if {tokens::%uuid of player%} is more than 49:
remove 50 from {tokens::%uuid of player%}
send "&6&lTokens &8┃ &eYou have purchased &a&l2X Sellwand
&efor &650⛃&e."
if arg-1 is "25sellwand":
if {tokens::%uuid of player%} is less than 100:
send "&6&lTokens &8┃ &cInsufficient funds."
if {tokens::%uuid of player%} is more than 99:
remove 100 from {tokens::%uuid of player%}
send "&6&lTokens &8┃ &eYou have purchased &a&l2.5X Sellwand
&efor &6100⛃&e."