Advertisement
twogz

Untitled

Jul 9th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. on first join:
  2. set {playerxp::%uuid of player%} to 0
  3. set {playerxpmax::%uuid of player%} to 50
  4. set {level::%uuid of player%} to 1
  5.  
  6. command /reset:
  7. trigger:
  8. set {playerxp::%uuid of player%} to 0
  9. set {playerxpmax::%uuid of player%} to 50
  10. set {level::%uuid of player%} to 1
  11.  
  12. on chat:
  13. cancel event
  14. broadcast "&7Lvl. %{level::%uuid of player%}% &e%player%: &f%message%"
  15.  
  16. command /xp [<text>] [<player>] [<integer>]:
  17. trigger:
  18. if player does not have permission "xp.use":
  19. message "&cYou can't use this command."
  20.  
  21. else:
  22. if arg 1 is "add":
  23. add arg 3 to {playerxp::%uuid of arg 2%}
  24. message "&6&l + %arg 3% Player XP - (%{playerxp::%uuid of arg 2%}%/%{playerxpmax::%uuid of arg 2%}%)" to arg 2
  25. if {playerxp::%uuid of arg 2%} >= {playerxpmax::%uuid of arg 2%}:
  26. add 1 to {level::%uuid of arg 2%}
  27. set {playerxp::%uuid of arg 2%} to 0
  28. add 25 to {playerxpmax::%uuid of arg 2%}
  29. message "&r " to arg 2
  30. message "&e&lYou are now lvl. %{level::%uuid of arg 2%}%" to arg 2
  31. message "&r " to arg 2
  32.  
  33. on break:
  34. if player does not have permission "build.bypass":
  35.  
  36. if event-block is coal ore:
  37. set event-block to stone
  38. execute console command "/xp add %player% 5"
  39. wait 1 minute
  40. set event-block to coal ore
  41.  
  42. if event-block is iron ore:
  43. set event-block to stone
  44. execute console command "/xp add %player% 5"
  45. wait 1 minute
  46. set event-block to iron ore
  47.  
  48. if event-block is gold ore:
  49. set event-block to stone
  50. execute console command "/xp add %player% 5"
  51. wait 1 minute
  52. set event-block to gold ore
  53.  
  54. if event-block is diamond ore:
  55. set event-block to stone
  56. execute console command "/xp add %player% 10"
  57. wait 1 minute
  58. set event-block to diamond ore
  59.  
  60. if event-block is emerald ore:
  61. set event-block to stone
  62. execute console command "/xp add %player% 15"
  63. wait 1 minute
  64. set event-block to emerald ore
  65.  
  66. if event-block is lapis lazuli ore:
  67. set event-block to stone
  68. execute console command "/xp add %player% 1"
  69. wait 30 seconds
  70. set event-block to lapis lazuli ore
  71.  
  72. if event-block is not coal ore or iron ore or gold ore or diamond ore or emerald ore or lapis lazuli ore:
  73. cancel event
  74.  
  75. command /clearchat:
  76. aliases: cc
  77. trigger:
  78. if player does not have permission "admin.clearchat":
  79. message "&cYou can't use this command."
  80.  
  81. else:
  82. loop 1000 times:
  83. broadcast " "
  84.  
  85. on join:
  86. wait 0.2 ticks
  87. loop 1000 times:
  88. message " "
  89. wait 0.2 ticks
  90. loop 1000 times:
  91. message " "
  92. wait 0.2 ticks
  93. loop 1000 times:
  94. message " "
  95. wait 0.2 ticks
  96. loop 1000 times:
  97. message " "
  98. wait 0.2 ticks
  99. loop 1000 times:
  100. message " "
  101. message "&e&l Killzone: &7&oCurrently running beta v0.0.1"
  102. message " "
  103. message "&f Get a boost, purchase a package to support"
  104. message "&f the growth of Killzone aswell as the community!"
  105. message " "
  106. message "&f Type &b/buy &fto access the webstore"
  107. message " "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement