Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on first join:
- add 1 to {joins}
- broadcast "&7Welcome &6%player% &7to &6TheBows &8[&6##%{joins}%&8]"
- set player's chestplate to elytra named "&6Elyra"
- make player execute command "spawn"
- give player 1 bow of infinity named "&61 Hit Bow"
- give player 1 arrow
- on join:
- if {death::%player's uuid%} is not set:
- set {death::%player's uuid%} to 0
- if {kills::%player's uuid%} is not set:
- set {kills::%player's uuid%} to 0
- if {killstreak::%player's uuid%} is not set:
- set {killstreak::%player's uuid%} to 0
- if {coins::%player's uuid%} is not set:
- set {coins::%player's uuid%} to 0
- on hunger meter change:
- cancel event
- on join:
- set join message to "&a+ %player%"
- clear player's inventory
- set player's chestplate to elytra named "&6Elyra"
- give player 1 bow of infinity named "&61 Hit Bow"
- give player 1 arrow
- on quit:
- set quit message to "&c- %player%"
- on inventory click:
- if event-item is elytra:
- cancel event
- send "&cYou may not move this item" to player
- on inventory click:
- if event-item is bow:
- cancel event
- send "&cYou may not move this item" to player
- on inventory click:
- if event-item is arrow:
- cancel event
- send "&cYou may not move this item" to player
- on item damage:
- cancel event
- on drop:
- cancel event
- send "&cYou cant drop stuff"
- command /setspawn:
- permission: admin
- trigger:
- set {spawn} to player's location
- send "&cYou set the spawn location"
- command /spawn:
- trigger:
- teleport player to {spawn}
- send "&6Teleporting &7to Spawn"
- on damage:
- if victim is not attacker:
- cancel event
- teleport victim to {spawn}
- add 1 to {death::%victim's uuid%}
- add 1 to {kills::%attacker's uuid%}
- add 10 to {coins::%attacker's uuid%}
- broadcast "&6%attacker% &7killed &6%victim%"
- play sound "entity_chicken_egg" with volume 1 with pitch 1 at attacker for attacker
- play sound "BLOCK_ANVIL_LAND" with volume 1 with pitch 1 at victim for victim
- send victim title "&c&lYou Died!" with subtitle "&6%attacker% &7Killed You" for 3 seconds
- else:
- cancel event
- send "&cYou cant damage yourself" to victim
- every tick:
- loop all players:
- set tab header to "%nl%&3&lTheBow%nl%%nl%&81Hit Server%nl%" and footer to "%nl%%nl%&7Thebow.minehut.gg" for loop-player
- set loop-player's tablist name to "&r%loop-player's display name% &c%{kills::%loop-player's uuid%}% &e%{coins::%loop-player's uuid%}% &2%{killstreak::%loop-player's uuid%}%"
- on chat:
- cancel event
- if player have permission "whitechat":
- broadcast "%player's display name% &6» &f%message%"
- else:
- broadcast "%player's display name% &6» &7%message%"
- every 1 second:
- loop all players:
- wipe loop-players sidebar
- set name of sidebar of loop-player to "&8» &6&lTheBow &8«"
- set score "&1" in sidebar of loop-player to 15
- set score "&6Player:" in sidebar of loop-player to 14
- set score "&6╔ &7Username:&7 %loop-player%" in sidebar of loop-player to 13
- set score "&6║ &7Kills:&7 %{kills::%loop-player's uuid%}%" in sidebar of loop-player to 6
- set score "&6║ &7Deaths:&7 %{death::%loop-player's uuid%}%" in sidebar of loop-player to 5
- set score "&6║ &7Kill Streak:&7 %{killstreak::%loop-player's uuid%}%" in sidebar of loop-player to 4
- set score "&6║ &7Coins: &7%{coins::%loop-player's uuid%}%" in sidebar of loop-player to 3
- set score "&6║ &7Players Online:&7 %amount of players%" in sidebar of loop-player to 2
- set score "&6" in sidebar of loop-player to 1
- on damage:
- if attacker is attacker:
- cancel event
- add 1 to {killstreak::%attacker's uuid%}
- if {killstreak::%attacker's uuid%} >= 5:
- broadcast "&6%attacker% &7is on a %{killstreak::%attacker's uuid%}% KillStreak"
- stop
- if {killstreak::%victim's uuid%} >= 5:
- broadcast "&6%attacker% &7ended &6%victim% &7Killstreak of %{killstreak::%victim's uuid%}%"
- set {killstreak::%victim's uuid%} to 0
- stop
- set {killstreak::%victim's uuid%} to 0
- on walk on barrier:
- teleport player to {spawn}
- add 1 to {death::%player's uuid%}
- send player title "&c&lYou Died!" with subtitle "&6You &7walked off" for 3 seconds
- command /shop:
- trigger:
- open chest with 3 rows named "&bPvP Shop" to player
- set {_n} to 0
- loop 27 times:
- make gui slot {_n} of player with black glass pane named "&f" to do nothing
- add 1 to {_n}
- make gui slot 10 of player with nether star named "&4R&ca&6i&en&ab&2o&9w &fSpiral" with lore "&e1000 Coins||&7Use this in /p" to run:
- if {coins::%player's uuid%} >= 1000:
- execute console command "pex user %player% add command.particles.spiral"
- send "&6You &7bought a particle use this in /p"
- remove 1000 from {coins::%player's uuid%}
- stop
- else:
- send "&6You &eneed 1000 Coins to buy this"
- command /tags:
- trigger:
- open chest with 3 rows named "&bTags" to player
- set {_n} to 0
- loop 27 times:
- make gui slot {_n} of player with black glass pane named "&f" to do nothing
- add 1 to {_n}
- make gui slot 10 of player with name_tag named "&c[PVP]" to do nothing
- command /addcoins [<offlineplayer>] [<text>]:
- permission: admin
- trigger:
- if arg-1 is set:
- if arg-2 is set:
- add arg-2 to {coins::%arg-1's uuid%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement