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 "&6You currently have &b%{gold.%uuid of player%}% &6gold."
- 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 "&6%arg 1% currently has &b%{gold.%uuid of arg 1%}% &6gold."
- 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%"
- on break:
- if player's gamemode is survival:
- cancel event
- if event-block is gold ore:
- if held item is pickaxe:
- if player has permission "player.vip":
- add 2 to {gold.%uuid of player%}
- message "&6 + 2 gold has been added to your balance. &7(2x multiplier.)"
- chance of 10%:
- execute console command "/xp give %player% 20"
- else:
- add 1 to {gold.%uuid of player%}
- message "&6 + 1 gold has been added to your balance. &7(no multiplier)"
- chance of 5%:
- execute console command "/xp give %player% 10"
- set {_r} to a random integer between 0 and 1
- if {_r} = 0:
- set event-block to stone
- if {_r} = 1:
- set event-block to andesite
- wait 5 minutes
- set event-block to gold ore
- else:
- message "&cThis block must be mined with a pickaxe."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement