Advertisement
twogz

Untitled

Jul 26th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 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 arg 1 is "give":
  9. add arg 3 to {xp.%uuid of arg 2%}
  10. message "&eYou got %arg 3% XP." to arg 2
  11. if {xp.%uuid of arg 2%} >= {xpmax.%uuid of arg 2%}:
  12. add 1 to {level.%uuid of arg 2%}
  13. set {xp.%uuid of arg 2%} to 0
  14. add 500 to {xpmax.%uuid of arg 2%}
  15. message "&3You are now level %{level.%uuid of arg 2%}%." to arg 2
  16.  
  17. command /reset:
  18. trigger:
  19. if player does not have permission "admin.reset":
  20. message "&cYou must be admin or higher to use this command."
  21. else:
  22. set {xp.%uuid of player%} to 0
  23. set {xpmax.%uuid of player%} to 1000
  24. set {level.%uuid of player%} to 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement