Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /buy [<text>] [<offline player>]:
- permission: skript.buy
- trigger:
- if arg 1 is "potato":
- if {coin.%uuid of arg 2%} is more than 49:
- remove 50 from {coin.%uuid of arg 2%}
- command "give %arg 2% potato 16"
- send "&aじゃがいもを購入しました" to arg 2
- else:
- send "&cお金が足りません" to arg 2
- if arg 1 is "bread":
- if {coin.%uuid of arg 2%} is more than 299:
- remove 300 from {coin.%uuid of arg 2%}
- command "give %arg 2% bread 16"
- send "&aパンを購入しました" to arg 2
- else:
- send "&cお金が足りません" to arg 2
- if arg 1 is "steak":
- if {coin.%uuid of arg 2%} is more than 1499:
- remove 1500 from {coin.%uuid of arg 2%}
- command "give %arg 2% cooked_beef 16"
- send "&aステーキを購入しました" to arg 2
- else:
- send "&cお金が足りません" to arg 2
- if arg 1 is "book":
- if {coin.%uuid of arg 2%} is more than 799:
- remove 800 from {coin.%uuid of arg 2%}
- command "give %arg 2% book 1"
- send "&a本を購入しました" to arg 2
- else:
- send "&cお金が足りません" to arg 2
- if arg 1 is "arrow":
- if {coin.%uuid of arg 2%} is more than 299:
- remove 300 from {coin.%uuid of arg 2%}
- command "give %arg 2% arrow 16"
- send "&a矢を購入しました" to arg 2
- else:
- send "&cお金が足りません" to arg 2
- if arg 1 is "experience":
- if {coin.%uuid of arg 2%} is more than 999:
- remove 1000 from {coin.%uuid of arg 2%}
- command "give %arg 2% experience_bottle 16"
- send "&a経験値瓶を購入しました" to arg 2
- else:
- send "&cお金が足りません" to arg 2
Add Comment
Please, Sign In to add comment