twogz

Untitled

Jul 22nd, 2017
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. on first join:
  2. set {level::%uuid of player%} to 0
  3. set {xp::%uuid of player%} to 0
  4. set {xpmax::%uuid of player%} to 50
  5. give wood pickaxe to player
  6.  
  7. command /xp [<text>] [<player>] [<integer>]:
  8. trigger:
  9. if player does not have permission "xp.*":
  10. message "&c&lHey! &7You don't have permission to use this command!"
  11.  
  12. else:
  13. if arg 1 is "give":
  14. add arg 3 to {xp::%uuid of arg 2%}
  15. message "&6&l + %arg 3% Player XP" to arg 2
  16. if {xp::%uuid of arg 2%} >= {xpmax::%uuid of arg 2%}:
  17. add 1 to {level::%uuid of arg 2%}
  18. message "&e&lYou are now level %{level::%uuid of arg 2%}%" to arg 2
  19. set {xp::%uuid of arg 2%} to 0
  20. add 25 to {xpmax::%uuid of arg 2%}
  21.  
  22. command /reset:
  23. permission: xp.*
  24. trigger:
  25. set {level::%uuid of player%} to 0
  26. set {xp::%uuid of player%} to 0
  27. set {xpmax::%uuid of player%} to 50
Add Comment
Please, Sign In to add comment