Mireacul

BorderFrenzy.sk

Apr 20th, 2026
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. options:
  2. P: &7[&bBorderFrenzy&7]
  3. startRadius: 10000
  4. pvpRadius: 8000
  5. finalRadius: 50
  6.  
  7. command /borderfrenzy [<text>]:
  8. permission: skript.host
  9. trigger:
  10. if arg-1 is set:
  11. if arg-1 is "on" or "enabled" or "start":
  12. if {scenario::BorderFrenzy} is set:
  13. send "&7BorderFrenzy is already &aEnabled"
  14. else:
  15. if {uhc::setup} is set:
  16. if {uhc::pregame} is set:
  17. make command sender execute "/start confirm"
  18. wait 15 seconds
  19. set {scenario::BorderFrenzy} to true
  20. make command sender execute command "/worldborder center 0 0"
  21. set {_t} to ({uhc::pvpmins} + {uhc::mumins}) * 60
  22. set {_final} to {@finalRadius} * 2
  23. make command sender execute command "/worldborder set %{_final}% %{_t}%"
  24. set {_t} to {uhc::pvpmins} + {uhc::mumins}
  25. send "&7BorderFrenzy has been &aEnabled: Over the next %{_t}% minutes."
  26. set {BF::permin} to {@startRadius}/{_t}
  27. else:
  28. send "&7No game is in pregame"
  29. else:
  30. send "&7UHC has not been setup"
  31. else if arg-1 is "off" or "disable" or "stop":
  32. if {scenario::BorderFrenzy} is not set:
  33. send "&7BorderFrenzy is already &cDisabled"
  34. else:
  35. delete {scenario::BorderFrenzy}
  36. delete {BF::permin}
  37. send "&7BorderFrenzy has been &cDisabled"
  38. else if arg-1 is "help" or "h":
  39. send "&7/BorderFrenzy &aon&7/&coff&7/&etoggle"
  40. else:
  41. make command sender execute command "/BorderFrenzy help"
  42.  
  43. every minute:
  44. {scenario::BorderFrenzy} is set
  45. {BF::permin} is set
  46. set {uhc::border} to {uhc::border} - {BF::permin}
  47. {uhc::border} is less than or equal to {@finalRadius}
  48. set {uhc::border} to {@finalRadius}
  49. delete {BF::permin}
  50. send "&eBorderFrenzy &7has reached &e{@finalRadius}x{@finalRadius}" to {uhc::host}
  51.  
  52.  
  53. command /calfrenzy [<text>] [<text>]:
  54. permission: skript.host
  55. trigger:
  56. if arg-1 is set:
  57. if arg-1 is "set":
  58. if arg-2 is set:
  59. set {_t} to "%arg-2%" parsed as a integer
  60. if {_t} is set:
  61.  
  62.  
  63.  
  64. set {_pvp} to ({@startRadius} - {@pvpRadius}) * {_t} / {@startRadius}
  65. set {_check} to floor({_pvp})
  66. set {_score} to {_pvp} - {_check}
  67. if {_score} is 0:
  68. set {_mu} to {_t} - {_pvp}
  69. set {uhc::pvpmins} to {_pvp}
  70. set {uhc::mumins} to {_mu}
  71. send "&7Game has been set for %{_t}% total minutes, PvP will be enabled after %{uhc::pvpmins}% minutes and the border"
  72. send "&7will quit skrinking after %{uhc::mumins}% minutes once pvp is enabled."
  73. stop
  74. else:
  75. send "&7That game length doesn't divide evenly for PvP at {@pvpRadius}. Try another value."
  76. else:
  77. send "&7Value must be an integer"
  78. else:
  79. send "&cError&7 correct usage is &e/calfrenzy set &7[&ctotal game time&7]"
  80. else if arg-1 is "delete":
  81. if {uhc::pvpmins} is set:
  82. if {uhc::mumins} is set:
  83. if {uhc::running} is not set:
  84. delete {uhc::mumins}
  85. delete {uhc::pvpmins}
  86. delete {uhc::setup}
  87. send "&7Game configuration has been &cdeleted"
  88. else:
  89. send "&cError game is running"
  90. else:
  91. send "&cError no time set"
  92. else:
  93. send "&cError no time set"
  94. else:
  95. send "&cError"
  96. send "&e/calfrenzy set &7[&ctotal game time&7]"
  97. send "&e/calfrenzy delete"
  98. else:
  99. send "&cError"
  100. send "&e/calfrenzy set &7[&ctotal game time&7]"
  101. send "&e/calfrenzy delete"
  102.  
Advertisement
Add Comment
Please, Sign In to add comment