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 [<player>]:
- trigger:
- if player does not have permission "admin.reset":
- message "&cYou must be admin or higher to use this command."
- else:
- if arg 1 is not set:
- set {xp.%uuid of player%} to 0
- set {xpmax.%uuid of player%} to 1000
- set {level.%uuid of player%} to 1
- set {gold.%uuid of player%} to 0
- message "&3All of your stats have been reset."
- else:
- set {xp.%uuid of arg 1%} to 0
- set {xpmax.%uuid of arg 1%} to 1000
- set {level.%uuid of arg 1%} to 1
- set {gold.%uuid of arg 1%} to 0
- message "&3The stats of %arg 1% have been reset."
- command /stats [<player>]:
- trigger:
- if arg 1 is not set:
- message ""
- message "&3Player: &b%player%"
- message "&eYou are level %{level.%uuid of player%}% and need &b%{xpmax.%uuid of player%} - {xp.%uuid of player%}% &emore experience to level up."
- message "&6Gold: &e%{gold.%uuid of player%}%"
- message ""
- else:
- if arg 1 is not online:
- message "&c/stats (online player)"
- else:
- message ""
- message "&3Player: &b%arg 1%"
- message "&eThis player is level %{level.%uuid of arg 1%}% and needs &b%{xpmax.%uuid of arg 1%} - {xp.%uuid of arg 1%}% &emore experience to level up."
- message "&6Gold: &e%{gold.%uuid of arg 1%}%"
- message ""
- on chat:
- cancel event
- if {prefix.%uuid of player%} is not set:
- broadcast "&7 Lvl. %{level.%uuid of player%}% %player%: %message%"
- else:
- broadcast "&f Lvl. %{level.%uuid of player%}% %{prefix.%uuid of player%}% %player%&f: %message%"
- command /prefix [<player>] [<text>]:
- trigger:
- if player does not have permission "admin.prefix":
- message "&cYou must be admin or higher to use this command."
- else:
- if arg 1 is not set:
- message "&c/prefix (player) (text)"
- else:
- set {prefix.%uuid of arg 1%} to "%coloured arg 2%"
- message "&3You set the prefix of &e%arg 1% &3to %coloured arg 2%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement