Advertisement
twogz

Untitled

Jul 26th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 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 not set:
  12. message "&c/xp give (player) (amount)"
  13. if arg 1 is "give":
  14. add arg 3 to {xp.%uuid of arg 2%}
  15. message "&eYou got %arg 3% 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. set {xp.%uuid of arg 2%} to 0
  19. add 500 to {xpmax.%uuid of arg 2%}
  20. message "&3You are now level %{level.%uuid of arg 2%}%." to arg 2
  21.  
  22. command /reset:
  23. trigger:
  24. if player does not have permission "admin.reset":
  25. message "&cYou must be admin or higher to use this command."
  26. else:
  27. set {xp.%uuid of player%} to 0
  28. set {xpmax.%uuid of player%} to 1000
  29. set {level.%uuid of player%} to 1
  30. message "&3All of your stats have been reset."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement