Advertisement
twogz

Untitled

Jul 9th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 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" 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. cancel event
  36.  
  37. if event-block is coal ore:
  38. set event-block to stone
  39. give coal item to player
  40. execute console command "/xp add %player% 5"
  41. wait 1 minute
  42. set event-block to coal ore
  43.  
  44. if event-block is iron ore:
  45. set event-block to stone
  46. give iron ingot to player
  47. execute console command "/xp add %player% 5"
  48. wait 1 minute
  49. set event-block to iron ore
  50.  
  51. if event-block is gold ore:
  52. set event-block to stone
  53. give gold ingot to player
  54. execute console command "/xp add %player% 5"
  55. wait 1 minute
  56. set event-block to gold ore
  57.  
  58. if event-block is diamond ore:
  59. set event-block to stone
  60. give diamond to player
  61. execute console command "/xp add %player% 10"
  62. wait 1 minute
  63. set event-block to diamond ore
  64.  
  65. if event-block is emerald ore:
  66. set event-block to stone
  67. give emerald to player
  68. execute console command "/xp add %player% 15"
  69. wait 1 minute
  70. set event-block to emerald ore
  71.  
  72. if event-block is lapis lazuli ore:
  73. set event-block to stone
  74. give 3 lapis lazuli to player
  75. execute console command "/xp add %player% 1"
  76. wait 30 seconds
  77. set event-block to lapis lazuli ore
  78.  
  79. command /clearchat:
  80. aliases: cc
  81. trigger:
  82. if player does not have permission "admin.clearchat":
  83. message "&cYou can't use this command."
  84.  
  85. else:
  86. loop 1000 times:
  87. broadcast " "
  88.  
  89. on join:
  90. wait 0.2 ticks
  91. loop 1000 times:
  92. message " "
  93. message "&e&l Killzone: &fCurrently running beta v0.0.1"
  94. message " "
  95. message "&f Get a boost, purchase a rank to support"
  96. message "&f the growth of Killzone aswell as the community!"
  97. message " "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement