Advertisement
twogz

Untitled

Jul 22nd, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 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.  
  6. command /xp [<text>] [<player>] [<integer>]:
  7. trigger:
  8. if player does not have permission "xp.*":
  9. message "&c&lHey! &7You don't have permission to use this command!"
  10.  
  11. else:
  12. if arg 1 is "give":
  13. add arg 3 to {xp::%uuid of arg 2%}
  14. message "&6&l + %arg 3% Player XP" to arg 2
  15. if {xp::%uuid of arg 2%} >= {xpmax::%uuid of arg 2%}:
  16. add 1 to {level::%uuid of arg 2%}
  17. message "&e&lYou are now level %{level::%uuid of arg 2%}%" to arg 2
  18. set {xp::%uuid of arg 2%} to 0
  19. add 25 to {xpmax::%uuid of arg 2%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement