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_vip: 20
- cena_jajo: 20
- cena_chest: 20
- command /kupvip [<player>]:
- trigger:
- if arg is not set:
- if {coins.%player%} is greater than {@cena_vip}:
- execute console command "setrank %player% Vip 7d"
- stop
- else:
- send "Nie masz tylu coinsow"
- else:
- if {coins.%player%} is greater than {@cena_vip}:
- execute console command "setrank %player% Vip 7d"
- stop
- else:
- send "Nie masz tylu coinsow"
- command /kupjajo [<player>]:
- trigger:
- if arg is not set:
- if {coins.%player%} is greater than {@cena_jajo}:
- execute console command "pandora %player% 1"
- stop
- else:
- send "Nie masz tylu coinsow"
- else:
- if {coins.%player%} is greater than {@cena_jajo}:
- execute console command "pandora %player% 1"
- stop
- else:
- send "Nie masz tylu coinsow"
- command /kupchest [<player>]:
- trigger:
- if arg is not set:
- if {coins.%player%} is greater than {@cena_chest}:
- execute console command "case give CraftLore %player% "
- stop
- else:
- send "Nie masz tylu coinsow"
- else:
- if {coins.%player-arg%} is greater than {@cena_chest}:
- execute console command "case give CraftLore %player% "
- stop
- else:
- send "Nie masz tylu 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&l" to close then run ""
- 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&l" to close then run ""
- 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&l" to close then run ""
- 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&l" to close then run ""
- 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&l" to close then run "%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&l" to close then run "%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&l" to close then run "%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&l" to close then run "%player%"
- format slot 33 of player-arg with 1 diamond to be unstealable
Advertisement
Add Comment
Please, Sign In to add comment