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 player does not have permission "admin.xp":
- message "&cYou must be admin or higher to use this command."
- else:
- if arg 1 is not set:
- message "&c/xp give (player) (amount)"
- if arg 1 is "give":
- add arg 3 to {xp.%uuid of arg 2%}
- message "&eYou got %arg 3% experience. Type &b/stats &eto view your progress." 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 &blevel %{level.%uuid of arg 2%}%&3. Type &e/stats &3to view your progress." 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
- message "&3All of your stats have been reset."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement