Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {coins.%player%} = 0
- on mine of stone:
- if player's gamemode is survival:
- add 1 to {coins.%player%}
- command /coins [<text>] [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- send "&9-=-=-=-=-=- &7Craft&6&lCoins &9-=-=-=-=-=-"
- send "&a/coins daj [nick] [coins] &b- daje danemu graczowi punkty"
- send "&a/coins sprawdz [nick] &b- sprawdza statystyki danego gracza"
- send "&a/coins resetuj [nick] &b- resetuje punkty graczowi"
- send "&9-=-=-=-=-=- &7Craft&6&lCoins &9-=-=-=-=-=-"
- stop
- if arg 1 is "sprawdz":
- if arg 2 is not empty:
- send "&3_-_-_ &7&l%arg 2% &3_-_-_"
- send "&9 &bCoinsy: &b%{coins.%arg 2%}%"
- stop
- if arg 1 is "resetuj":
- if arg 2 is not empty:
- if has permissions "coins.resetuj":
- set {punkty.%arg 2%} to 0
- send "&2Zresetowales punkty graczowi &a%arg 2%"
- else:
- send "&4Nie masz pozwolenia na uzywanie tej komendy !"
- stop
- stop
- if arg 1 is "daj":
- if player has permission "coins.daj":
- add %arg 2% to {punkty.%arg 1%}
- send "&3Dodales graczowi &7%arg 1% &a%arg 2% punktow!"
- else:
- send "&4Nie masz pozwolenia na uzywanie tej komendy !"
- stop
- options:
- cena_: 20
- cena_szaty_nowicjusza: 20
- cena_spodni_nowicjusza: 20
- cena_butow_nowicjusza: 20
- command /kupkapno [<player>]:
- trigger:
- if arg is not set:
- if {coins.%player%} is greater than {@cena_kaptura_nowicjusza}:
- give 1 leather helmet named "&5&lKaptur Nowicjusza" to the player
- stop
- else:
- send "Nie masz tyle coinsow"
- else:
- if {coins.%player%} is greater than {@cena_kaptura_nowicjusza}:
- give 1 leather helmet named "&5&lKaptur Nowicjusza" to player-arg
- stop
- else:
- send "Nie masz tyle coinsow"
- command /kupszano [<player>]:
- trigger:
- if arg is not set:
- if {coins.%player%} is greater than {@cena_szaty_nowicjusza}:
- give 1 leather tunic named "&5&lSzata Nowicjusza" to the player
- stop
- else:
- send "Nie masz tyle coinsow"
- else:
- if {coins.%player%} is greater than {@cena_szaty_nowicjusza}:
- give 1 leather tunic named "&5&lSzata Nowicjusza" to player-arg
- stop
- else:
- send "Nie masz tyle coinsow"
- command /kupspno [<player>]:
- trigger:
- if arg is not set:
- if {coins.%player%} is greater than {@cena_spodni_nowicjusza}:
- give 1 leather pants named "&5&lSpodnie Nowicjusza" to the player
- stop
- else:
- send "Nie masz tyle coinsow"
- else:
- if {coins.%player%} is greater than {@cena_spodni_nowicjusza}:
- give 1 leather pants named "&5&lSpodnie Nowicjusza" to player-arg
- stop
- else:
- send "Nie masz tyle coinsow"
- command /kupbuno [<player>]:
- trigger:
- if arg is not set:
- if {coins.%player%} is greater than {@cena_butow_nowicjusza}:
- execute console command "setrank %player% Vip 30d"
- stop
- else:
- send "Nie masz tyle coinsow"
- else:
- if {coins.%player-arg%} is greater than {@cena_butow_nowicjusza}:
- give 1 leather boots named "&5&lButy Nowicjusza" to player-arg
- stop
- else:
- send "Nie masz tyle coinsow"
- command /sklep [<text>] [<player>]:
- trigger:
- if arg 2 is not set:
- if arg 1 is "coins":
- open chest with 4 rows named "&6&lCraftCoinsShop" to the player
- wait 2 tick
- format slot 2 of player with 1 diamond to be unstealable
- format slot 3 of player with 1 leather helmet named "&5&lKaptur Nowicjusza" to close then run "kupkapno"
- format slot 6 of player with 1 diamond to be unstealable
- format slot 11 of player with 1 diamond to be unstealable
- format slot 12 of player with 1 leather tunic named "&5&lSzata Nowicjusza" to close then run "kupszano"
- format slot 15 of player with 1 diamond to be unstealable
- format slot 20 of player with 1 diamond to be unstealable
- format slot 21 of player with 1 leather pants named "&5&lSpodnie Nowicjusza" to close then run "kupspno"
- format slot 24 of player with 1 diamond to be unstealable
- format slot 29 of player with 1 diamond to be unstealable
- format slot 30 of player with 1 leather boots named "&5&lButy Nowicjusza" to close then run "kupbuno"
- format slot 33 of player with 1 diamond to be unstealable
- else:
- if arg 1 is "coins":
- open chest with 4 rows named "&6&lCraftCoinsShop" to player-arg
- wait 2 tick
- format slot 2 of player-arg with 1 diamond to be unstealable
- format slot 3 of player-arg with 1 leather helmet named "&5&lKaptur Nowicjusza" to close then run "kupkapno %player%"
- format slot 6 of player-arg with 1 diamond to be unstealable
- format slot 11 of player-arg with 1 diamond to be unstealable
- format slot 12 of player-arg with 1 leather tunic named "&5&lSzata Nowicjusza" to close then run "kupszano %player%"
- format slot 15 of player with 1 diamond to be unstealable
- format slot 20 of player-arg with 1 diamond to be unstealable
- format slot 21 of player-arg with 1 leather pants named "&5&lSpodnie Nowicjusza" to close then run "kupspno %player%"
- format slot 24 of player-arg with 1 diamond to be unstealable
- format slot 29 of player-arg with 1 diamond to be unstealable
- format slot 30 of player-arg with 1 leather boots named "&5&lButy Nowicjusza" to close then run "kupbuno %player%"
- format slot 33 of player-arg with 1 diamond to be unstealable
Advertisement
Add Comment
Please, Sign In to add comment