Advertisement
twogz

Untitled

Jul 26th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. on first join:
  2. set {xp.%uuid of player%} to 0
  3. set {xpmax.%uuid of player%} to 1000
  4. set {level.%uuid of player%} to 1
  5.  
  6. command /xp [<text>] [<player>] [<integer>]:
  7. trigger:
  8. if player does not have permission "admin.xp":
  9. message "&cYou must be admin or higher to use this command."
  10. else:
  11. if arg 1 is "give":
  12. add arg 3 to {xp.%uuid of arg 2%}
  13. message "&eYou got %arg 3% XP." to arg 2
  14. if {xp.%uuid of arg 2%} >= {xpmax.%uuid of arg 2%}:
  15. add 1 to {level.%uuid of arg 2%}
  16. set {xp.%uuid of arg 2%} to 0
  17. add 500 to {xpmax.%uuid of arg 2%}
  18. message "&3You are now level %{level.%uuid of arg 2%}%." to arg 2
  19.  
  20. command /reset:
  21. trigger:
  22. if player does not have permission "admin.reset":
  23. message "&cYou must be admin or higher to use this command."
  24. else:
  25. set {xp.%uuid of player%} to 0
  26. set {xpmax.%uuid of player%} to 1000
  27. set {level.%uuid of player%} to 1
  28. message "&3All of your stats have been reset."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement