Advertisement
twogz

Untitled

Jul 9th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 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. if player's group is "default":
  15. broadcast "&7Lvl. %{level::%uuid of player%} &7%player%&7: &7%message%"
  16.  
  17. else:
  18. broadcast "&7Lvl. %{level::%uuid of player%} %player's prefix% &e%player%&f: &f%message%"
  19.  
  20. command /xp [<text>] [<player>] [<integer>]:
  21. trigger:
  22. if player does not have permission "xp.use":
  23. message "&cYou can't use this command."
  24.  
  25. else:
  26. if arg 1 is "add":
  27. add arg 3 to {playerxp::%uuid of arg 2%}
  28. message "&6&l + %arg 3% Player XP" to arg 2
  29. if {playerxp::%uuid of arg 2%} >= {playerxpmax::%uuid of arg 2%}:
  30. add 1 to {level::%uuid of arg 2%}
  31. set {playerxp::%uuid of arg 2%} to 0
  32. add 25 to {playerxpmax::%uuid of arg 2%}
  33. message "&r " to arg 2
  34. message "&e&lYou are now lvl. %{level::%uuid of arg 2%}%" to arg 2
  35. message "&r " to arg 2
  36.  
  37. on break:
  38. if player does not have permission "build.bypass":
  39. cancel event
  40.  
  41. if event-block is coal ore:
  42. set event-block to stone
  43. give coal item to player
  44. wait 1 minute
  45. set event-block to coal ore
  46. execute console command "/xp add %player% 5"
  47.  
  48. if event-block is iron ore:
  49. set event-block to stone
  50. give iron ingot to player
  51. wait 1 minute
  52. set event-block to iron ore
  53. execute console command "/xp add %player% 5"
  54.  
  55. if event-block is gold ore:
  56. set event-block to stone
  57. give gold ingot to player
  58. wait 1 minute
  59. set event-block to gold ore
  60. execute console command "/xp add %player% 5"
  61.  
  62. if event-block is diamond ore:
  63. set event-block to stone
  64. give diamond to player
  65. wait 1 minute
  66. set event-block to diamond ore
  67. execute console command "/xp add %player% 10"
  68.  
  69. if event-block is emerald ore:
  70. set event-block to stone
  71. give emerald to player
  72. wait 1 minute
  73. set event-block to emerald ore
  74. execute console command "/xp add %player% 15"
  75.  
  76. if event-block is lapis lazuli ore:
  77. set event-block to stone
  78. give 3 lapis lazuli to player
  79. wait 30 seconds
  80. set event-block to lapis lazuli ore
  81. execute console command "/xp add %player% 1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement