Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on first join:
- set {xp::%uuid of player%} to 0
- set {maxxp::%uuid of player%} to 10
- set {level::%uuid of player%} to 1
- command /xp [<text>] [<player>] [<integer>]:
- trigger:
- if arg 1 is "add":
- if player does not have permission "leveling.*":
- message "&cInsufficient permissions."
- else:
- add arg 3 to {xp::%uuid of arg 2%}
- message "&6&l+ %arg 3% Player XP - (%{xp::%uuid of arg 2%}%/10)" to arg 2
- if {xp::%uuid of arg 2%} >= {maxxp::%uuid of arg 2%}:
- add 1 to {level::%uuid of arg 2%}
- set {xp::%uuid of arg 2%} to 0
- message "&e&lYou are now Lvl. %{level::%uuid of player%}%" to arg 2
- command /resetxp:
- trigger:
- message "&c&lYour Level and XP have been reset."
- set {xp::%uuid of player%} to 0
- set {maxxp::%uuid of player%} to 10
- set {level::%uuid of player%} to 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement