ThePolishThomas

Untitled

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