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%}%"
- send "&3_-_-_ &7&l%arg 2% &3_-_-_"
- stop
- if arg 1 is "resetuj":
- if arg 2 is not empty:
- if has permissions "coins.resetuj":
- set {coins.%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 {coins.%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: 50000
- cena_jajo: 1500
- cena_chest: 20000
- 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 "&6Nie masz tyle coinsow"
- else:
- if {coins.%player%} is greater than {@cena_vip}:
- execute console command "setrank %player% Vip 7d"
- stop
- else:
- send "&6Nie masz tyle 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 "&6Nie masz tyle coinsow"
- else:
- if {coins.%player%} is greater than {@cena_jajo}:
- execute console command "pandora %player% 1"
- stop
- else:
- send "&6Nie masz tyle 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 "&6Nie masz tyle coinsow"
- else:
- if {coins.%player-arg%} is greater than {@cena_chest}:
- execute console command "case give CraftLore %player% "
- stop
- else:
- send "&6&6Nie masz tyle coinsow"
- command /sklep [<text>] [<player>]:
- trigger:
- if arg 2 is not set:
- if arg 1 is "coins":
- open chest with 1 rows named "&6&lCoins SHOP" to the player
- wait 2 tick
- format slot 0 of player with 1 black stained glass pane to be unstealable
- format slot 1 of player with 1 black stained glass pane to be unstealable
- format slot 2 of player with 1 black stained glass pane to be unstealable
- format slot 3 of player with 1 dragon egg named "&3Magiczne jajko" to close then run "kupjajo"
- format slot 4 of player with 1 name tag named "&6VIP - 7 dni" to close then run "kupvip"
- format slot 5 of player with 1 chest named "&620 Skrzynek i kluczy CraftLore" to close then run "kupchest"
- format slot 6 of player with 1 black stained glass pane to be unstealable
- format slot 7 of player with 1 black stained glass pane to be unstealable
- format slot 8 of player with 1 black stained glass pane to be unstealable
Advertisement
Add Comment
Please, Sign In to add comment