Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick on creeper:
- cancel event
- open chest with 3 row named "&rショップ" to player
- format slot 10 of player with 16 potato named "&aじゃがいも &650コイン" with lore "&eクリックで16個購入します" to close then run "buy potato %player%"
- format slot 11 of player with 16 bread named "&aパン &6300コイン" with lore "&eクリックで16個購入します" to close then run "buy bread %player%"
- format slot 12 of player with 16 steak named "&aステーキ &61500コイン" with lore "&eクリックで16個購入します" to close then run "buy steak %player%"
- 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
Add Comment
Please, Sign In to add comment