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 {xpmax.%uuid of player%} to 1000
- set {level.%uuid of player%} to 1
- command /xp [<text>] [<player>] [<integer>]:
- trigger:
- if arg 1 is "give":
- add arg 3 to {xp.%uuid of arg 2%}
- message "&eYou got %arg 3% XP." to arg 2
- if {xp.%uuid of arg 2%} >= {xpmax.%uuid of arg 2%}:
- add 1 to {level.%uuid of arg 2%}
- set {xp.%uuid of arg 2%} to 0
- add 500 to {xpmax.%uuid of arg 2%}
- message "&3You are now level %{level.%uuid of arg 2%}%." to arg 2
- command /reset:
- trigger:
- if player does not have permission "admin.reset":
- message "&cYou must be admin or higher to use this command."
- else:
- set {xp.%uuid of player%} to 0
- set {xpmax.%uuid of player%} to 1000
- set {level.%uuid of player%} to 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement