Advertisement
Guest User

Untitled

a guest
Jan 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.25 KB | None | 0 0
  1. on first join:
  2. add 1 to {joins}
  3. broadcast "&7Welcome &6%player% &7to &6TheBows &8[&6##%{joins}%&8]"
  4. set player's chestplate to elytra named "&6Elyra"
  5. make player execute command "spawn"
  6. give player 1 bow of infinity named "&61 Hit Bow"
  7. give player 1 arrow
  8.  
  9. on join:
  10. if {death::%player's uuid%} is not set:
  11. set {death::%player's uuid%} to 0
  12. if {kills::%player's uuid%} is not set:
  13. set {kills::%player's uuid%} to 0
  14. if {killstreak::%player's uuid%} is not set:
  15. set {killstreak::%player's uuid%} to 0
  16. if {coins::%player's uuid%} is not set:
  17. set {coins::%player's uuid%} to 0
  18.  
  19. on hunger meter change:
  20. cancel event
  21.  
  22. on join:
  23. set join message to "&a+ %player%"
  24. clear player's inventory
  25. set player's chestplate to elytra named "&6Elyra"
  26. give player 1 bow of infinity named "&61 Hit Bow"
  27. give player 1 arrow
  28.  
  29.  
  30. on quit:
  31. set quit message to "&c- %player%"
  32.  
  33. on inventory click:
  34. if event-item is elytra:
  35. cancel event
  36. send "&cYou may not move this item" to player
  37.  
  38. on inventory click:
  39. if event-item is bow:
  40. cancel event
  41. send "&cYou may not move this item" to player
  42.  
  43. on inventory click:
  44. if event-item is arrow:
  45. cancel event
  46. send "&cYou may not move this item" to player
  47.  
  48. on item damage:
  49. cancel event
  50.  
  51. on drop:
  52. cancel event
  53. send "&cYou cant drop stuff"
  54.  
  55. command /setspawn:
  56. permission: admin
  57. trigger:
  58. set {spawn} to player's location
  59. send "&cYou set the spawn location"
  60.  
  61. command /spawn:
  62. trigger:
  63. teleport player to {spawn}
  64. send "&6Teleporting &7to Spawn"
  65.  
  66.  
  67. on damage:
  68. if victim is not attacker:
  69. cancel event
  70. teleport victim to {spawn}
  71. add 1 to {death::%victim's uuid%}
  72. add 1 to {kills::%attacker's uuid%}
  73. add 10 to {coins::%attacker's uuid%}
  74. broadcast "&6%attacker% &7killed &6%victim%"
  75. play sound "entity_chicken_egg" with volume 1 with pitch 1 at attacker for attacker
  76. play sound "BLOCK_ANVIL_LAND" with volume 1 with pitch 1 at victim for victim
  77. send victim title "&c&lYou Died!" with subtitle "&6%attacker% &7Killed You" for 3 seconds
  78. else:
  79. cancel event
  80. send "&cYou cant damage yourself" to victim
  81.  
  82.  
  83. every tick:
  84. loop all players:
  85. set tab header to "%nl%&3&lTheBow%nl%%nl%&81Hit Server%nl%" and footer to "%nl%%nl%&7Thebow.minehut.gg" for loop-player
  86. 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%}%"
  87.  
  88. on chat:
  89. cancel event
  90. if player have permission "whitechat":
  91. broadcast "%player's display name% &6» &f%message%"
  92. else:
  93. broadcast "%player's display name% &6» &7%message%"
  94.  
  95. every 1 second:
  96. loop all players:
  97. wipe loop-players sidebar
  98. set name of sidebar of loop-player to "&8» &6&lTheBow &8«"
  99. set score "&1" in sidebar of loop-player to 15
  100. set score "&6Player:" in sidebar of loop-player to 14
  101. set score "&6╔ &7Username:&7 %loop-player%" in sidebar of loop-player to 13
  102. set score "&6║ &7Kills:&7 %{kills::%loop-player's uuid%}%" in sidebar of loop-player to 6
  103. set score "&6║ &7Deaths:&7 %{death::%loop-player's uuid%}%" in sidebar of loop-player to 5
  104. set score "&6║ &7Kill Streak:&7 %{killstreak::%loop-player's uuid%}%" in sidebar of loop-player to 4
  105. set score "&6║ &7Coins: &7%{coins::%loop-player's uuid%}%" in sidebar of loop-player to 3
  106. set score "&6║ &7Players Online:&7 %amount of players%" in sidebar of loop-player to 2
  107. set score "&6" in sidebar of loop-player to 1
  108.  
  109. on damage:
  110. if attacker is attacker:
  111. cancel event
  112. add 1 to {killstreak::%attacker's uuid%}
  113. if {killstreak::%attacker's uuid%} >= 5:
  114. broadcast "&6%attacker% &7is on a %{killstreak::%attacker's uuid%}% KillStreak"
  115. stop
  116. if {killstreak::%victim's uuid%} >= 5:
  117. broadcast "&6%attacker% &7ended &6%victim% &7Killstreak of %{killstreak::%victim's uuid%}%"
  118. set {killstreak::%victim's uuid%} to 0
  119. stop
  120. set {killstreak::%victim's uuid%} to 0
  121.  
  122. on walk on barrier:
  123. teleport player to {spawn}
  124. add 1 to {death::%player's uuid%}
  125. send player title "&c&lYou Died!" with subtitle "&6You &7walked off" for 3 seconds
  126.  
  127. command /shop:
  128. trigger:
  129. open chest with 3 rows named "&bPvP Shop" to player
  130. set {_n} to 0
  131. loop 27 times:
  132. make gui slot {_n} of player with black glass pane named "&f" to do nothing
  133. add 1 to {_n}
  134. 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:
  135. if {coins::%player's uuid%} >= 1000:
  136. execute console command "pex user %player% add command.particles.spiral"
  137. send "&6You &7bought a particle use this in /p"
  138. remove 1000 from {coins::%player's uuid%}
  139. stop
  140. else:
  141. send "&6You &eneed 1000 Coins to buy this"
  142.  
  143. command /tags:
  144. trigger:
  145. open chest with 3 rows named "&bTags" to player
  146. set {_n} to 0
  147. loop 27 times:
  148. make gui slot {_n} of player with black glass pane named "&f" to do nothing
  149. add 1 to {_n}
  150. make gui slot 10 of player with name_tag named "&c[PVP]" to do nothing
  151.  
  152. command /addcoins [<offlineplayer>] [<text>]:
  153. permission: admin
  154. trigger:
  155. if arg-1 is set:
  156. if arg-2 is set:
  157. add arg-2 to {coins::%arg-1's uuid%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement