ThePolishThomas

Untitled

Feb 25th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.51 KB | None | 0 0
  1. variables:
  2. {coins.%player%} = 0
  3.  
  4. on mine of stone:
  5. if player's gamemode is survival:
  6. add 1 to {coins.%player%}
  7.  
  8. command /coins [<text>] [<text>] [<text>]:
  9. trigger:
  10. if arg 1 is not set:
  11. send "&9-=-=-=-=-=- &7Craft&6&lCoins &9-=-=-=-=-=-"
  12. send "&a/coins daj [nick] [coins] &b- daje danemu graczowi punkty"
  13. send "&a/coins sprawdz [nick] &b- sprawdza statystyki danego gracza"
  14. send "&a/coins resetuj [nick] &b- resetuje punkty graczowi"
  15. send "&9-=-=-=-=-=- &7Craft&6&lCoins &9-=-=-=-=-=-"
  16. stop
  17.  
  18. if arg 1 is "sprawdz":
  19. if arg 2 is not empty:
  20. send "&3_-_-_ &7&l%arg 2% &3_-_-_"
  21. send "&9 &bCoinsy: &b%{coins.%arg 2%}%"
  22. send "&3_-_-_ &7&l%arg 2% &3_-_-_"
  23. stop
  24. if arg 1 is "resetuj":
  25. if arg 2 is not empty:
  26. if has permissions "coins.resetuj":
  27. set {coins.%arg 2%} to 0
  28. send "&2Zresetowales punkty graczowi &a%arg 2%"
  29. else:
  30. send "&4Nie masz pozwolenia na uzywanie tej komendy !"
  31. stop
  32.  
  33. if arg 1 is "daj":
  34. if player has permission "coins.daj":
  35. add %arg 3% to {coins.%arg 2%}
  36. send "&3Dodales graczowi &7%arg 1% &a%arg 2% punktow!"
  37. else:
  38. send "&4Nie masz pozwolenia na uzywanie tej komendy !"
  39. stop
  40.  
  41. options:
  42. cena_vip: 50000
  43. cena_jajo: 1500
  44. cena_chest: 20000
  45.  
  46. command /kupvip [<player>]:
  47. trigger:
  48. if arg is not set:
  49. if {coins.%player%} is greater than {@cena_vip}:
  50. execute console command "setrank %player% Vip 7d"
  51. stop
  52. else:
  53. send "&6Nie masz tyle coinsow"
  54. else:
  55. if {coins.%player%} is greater than {@cena_vip}:
  56. execute console command "setrank %player% Vip 7d"
  57. stop
  58. else:
  59. send "&6Nie masz tyle coinsow"
  60. command /kupjajo [<player>]:
  61. trigger:
  62. if arg is not set:
  63. if {coins.%player%} is greater than {@cena_jajo}:
  64. execute console command "pandora %player% 1"
  65. stop
  66. else:
  67. send "&6Nie masz tyle coinsow"
  68. else:
  69. if {coins.%player%} is greater than {@cena_jajo}:
  70. execute console command "pandora %player% 1"
  71. stop
  72. else:
  73. send "&6Nie masz tyle coinsow"
  74.  
  75. command /kupchest [<player>]:
  76. trigger:
  77. if arg is not set:
  78. if {coins.%player%} is greater than {@cena_chest}:
  79. execute console command "case give CraftLore %player% "
  80. stop
  81. else:
  82. send "&6Nie masz tyle coinsow"
  83. else:
  84. if {coins.%player-arg%} is greater than {@cena_chest}:
  85. execute console command "case give CraftLore %player% "
  86. stop
  87. else:
  88. send "&6&6Nie masz tyle coinsow"
  89.  
  90. command /sklep [<text>] [<player>]:
  91. trigger:
  92. if arg 2 is not set:
  93. if arg 1 is "coins":
  94. open chest with 1 rows named "&6&lCoins SHOP" to the player
  95. wait 2 tick
  96. format slot 0 of player with 1 black stained glass pane to be unstealable
  97. format slot 1 of player with 1 black stained glass pane to be unstealable
  98. format slot 2 of player with 1 black stained glass pane to be unstealable
  99. format slot 3 of player with 1 dragon egg named "&3Magiczne jajko" to close then run "kupjajo"
  100. format slot 4 of player with 1 name tag named "&6VIP - 7 dni" to close then run "kupvip"
  101. format slot 5 of player with 1 chest named "&620 Skrzynek i kluczy CraftLore" to close then run "kupchest"
  102. format slot 6 of player with 1 black stained glass pane to be unstealable
  103. format slot 7 of player with 1 black stained glass pane to be unstealable
  104. format slot 8 of player with 1 black stained glass pane to be unstealable
Advertisement
Add Comment
Please, Sign In to add comment