Advertisement
kraejq

Untitled

Oct 22nd, 2023
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.89 KB | None | 0 0
  1. options:
  2. prefix: &f&lTAG HOP &8> &f
  3. admin: &c&lTAG HOP &4> &c
  4. command /admin:setpos [<text>]:
  5. permission: op
  6. trigger:
  7. if arg 1 is not set:
  8. send "{@admin} Correct usage: /..os <location id>"
  9. send "{@admin} Don't use if you don't know what it does!"
  10. send "{@admin} Set position %arg 1% to your current location."
  11. set {position::%arg 1%} to player's location
  12. command /tag [<text>]:
  13. permission: op
  14. trigger:
  15. if arg 1 is "start":
  16. broadcast "{@prefix} Tag Starting in &c5&f..."
  17. wait 1 second
  18. broadcast "{@prefix} Tag Starting in &64&f..."
  19. wait 1 second
  20. broadcast "{@prefix} Tag Starting in &e3&f..."
  21. wait 1 second
  22. broadcast "{@prefix} Tag Starting in &a2&f..."
  23. wait 1 second
  24. broadcast "{@prefix} Tag Starting in &21&f..."
  25. wait 1 second
  26. broadcast "{@prefix} Game has started!"
  27. broadcast "{@prefix} The Peace Period is ending in 10 seconds!"
  28. wait 1 second
  29. set {tag::game} to true
  30. loop all players:
  31. clear loop-player's inventory
  32. teleport loop-player to {position::map1}
  33. add 1 to {_id}
  34. set {tag::player::%{_id}%} to loop-player
  35. set {tag::taggerid} to random integer from 1 to {_id}
  36. set {tag::currenttagger} to {tag::player::%{_id}%}
  37. wait 10 seconds
  38. add 1 stick named "&eTagger" to inventory of {tag::player::%{tag::taggerid}%}
  39. send "{@prefix} &lYou are the tagger!" to {tag::player::%{tag::taggerid}%}
  40. wait 50 seconds
  41. broadcast "{@prefix} 2 minutes left!"
  42. wait 60 seconds
  43. broadcast "{@prefix} 1 minute left!"
  44. wait 30 seconds
  45. broadcast "{@prefix} 30 seconds left!"
  46. wait 27 seconds
  47. broadcast "{@prefix} Ending in &a3"
  48. wait 1 second
  49. broadcast "{@prefix} Ending in &e2"
  50. wait 1 second
  51. broadcast "{@prefix} Ending in &c1"
  52. wait 1 second
  53. broadcast "{@prefix} &lGame over!"
  54. loop all players:
  55. if loop-player's gamemode is not spectator:
  56. if loop-player is not {tag::currenttagger}:
  57. send "{@prefix} &e+3 coins (win)"
  58. add 3 to {coins::%player's uuid%}
  59. teleport loop-player to {position::spawn}
  60. clear inventory of loop-player
  61. set loop-player's gamemode to adventure
  62. broadcast "{@prefix} %{tag::currenttagger}% lost the game!"
  63. set {tag::game} to false
  64. stop
  65. if arg 1 is "stop":
  66. send "{@admin} Can't force stop the game, tho we made the server think its off."
  67. set {tag::game} to false
  68. on drop:
  69. if {bypass::*} contains player's uuid:
  70. stop
  71. cancel event
  72. on inventory click:
  73. if {bypass::*} contains player's uuid:
  74. stop
  75. cancel event
  76. on damage:
  77. cancel event
  78. if {tag::game} is false:
  79. stop
  80. if attacker's tool is stick:
  81. if {tag::currenttagger} is not attacker:
  82. clear attacker's inventory
  83. stop
  84. clear attacker's inventory
  85. add 1 stick named "&eTagger" inventory of {tag::currenttagger}
  86. broadcast "{@prefix} %victim% has been tagged!"
  87. set {tag::currenttagger} to victim
  88. on join:
  89. set health of player to 10
  90. if {tag::game} is true:
  91. teleport player to {position::map1}
  92. set player's gamemode to spectator
  93. send "{@prefix} The game is currently running. Please wait till the next lobby is available!"
  94. stop
  95. else:
  96. send "{@prefix} Welcome, %player%!"
  97. teleport player to {position::spawn}
  98. set player's gamemode to adventure
  99. stop
  100. on quit:
  101. if {tag::game} is true:
  102. if player is {tag::currenttagger}:
  103. broadcast "{@prefix} The tagger has left!"
  104. command /admin:bypass:
  105. trigger:
  106. if player is not "CrittedX" or "Krajek" or "p3rty":
  107. send "{@prefix} No permission!"
  108. stop
  109. if {bypass::*} contains player's uuid:
  110. send "{@admin} Bypass mode disabled."
  111. remove player's uuid from {bypass::*}
  112. stop
  113. else:
  114. send "{@admin} Bypass mode enabled."
  115. add player's uuid to {bypass::*}
  116. stop
  117. command /coins [<text>]:
  118. trigger:
  119. if {coins::%player's uuid%} is not set:
  120. set {coins::%player's uuid%} to 0
  121. send "{@prefix} Your coins: %{coins::%player's uuid%}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement