Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on first join:
- set {level::%uuid of player%} to 0
- set {xp::%uuid of player%} to 0
- set {xpmax::%uuid of player%} to 50
- command /xp [<text>] [<player>] [<integer>]:
- trigger:
- if player does not have permission "xp.*":
- message "&c&lHey! &7You don't have permission to use this command!"
- else:
- if arg 1 is "give":
- add arg 3 to {xp::%uuid of arg 2%}
- message "&6&l + %arg 3% Player XP" to arg 2
- if {xp::%uuid of arg 2%} >= {xpmax::%uuid of arg 2%}:
- add 1 to {level::%uuid of arg 2%}
- message "&e&lYou are now level %{level::%uuid of arg 2%}%" to arg 2
- set {xp::%uuid of arg 2%} to 0
- add 25 to {xpmax::%uuid of arg 2%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement