Advertisement
Guest User

Untitled

a guest
Dec 25th, 2015
4,051
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.78 KB | None | 0 0
  1. #BorderShrink by AudaxMC
  2.  
  3. options:
  4. world: uhc
  5.  
  6. command /bordershrink <text>:
  7. usage: /bodershrink <distance to shrink to (500 or 1000)>
  8. aliases: /bs
  9. permission: skript.op
  10. trigger:
  11. if arg 1 is equal to "1000":
  12. command "/scoreboard objectives setdisplay sidebar UHC"
  13. broadcast "&6The border will shrink to 1000x1000 in 5 minutes!"
  14. wait 4 minutes
  15. broadcast "&6The border will shrink to 1000x1000 in 1 minute!"
  16. wait 30 seconds
  17. broadcast "&6The border will shrink to 1000x1000 in 30 seconds!"
  18. wait 20 seconds
  19. broadcast "&6The border will shrink to 1000x1000 in 10 seconds!"
  20. wait 7 seconds
  21. broadcast "&6The border will shrink to 1000x1000 in 3 seconds!"
  22. wait 1 second
  23. broadcast "&6The border will shrink to 1000x1000 in 2 seconds!"
  24. wait 1 second
  25. broadcast "&6The border will shrink to 1000x1000 in 1 seconds!"
  26. wait 1 second
  27. broadcast "&6All players that were outside of 1000x1000 were teleported to 1000, 1000!"
  28. loop all players:
  29. if loop-player's x-coordinate is smaller than -1000:
  30. if loop-player's z-coordinate is smaller than -1000:
  31. command "/tp %loop-player% -999 200 -999"
  32. command "/setwalls {@world} 1000"
  33. command "/wb uhc setcorners 1000 -1000 -1000 1000"
  34. if loop-player's x-coordinate is larger than 1000:
  35. if loop-player's z-coordinate is larger than 1000:
  36. command "/tp %loop-player% 999 200 999"
  37. command "/setwalls {@world} 1000"
  38. command "/wb uhc setcorners 1000 -1000 -1000 1000"
  39. if loop-player's x-coordinate is larger than 1000:
  40. if loop-player's z-coordinate is smaller than -1000:
  41. command "/tp %loop-player% 999 200 -999"
  42. command "/setwalls {@world} 1000"
  43. command "/wb uhc setcorners 1000 -1000 -1000 1000"
  44. if loop-player's x-coordinate is smaller than -1000:
  45. if loop-player's z-coordinate is larger than 1000:
  46. command "/tp %loop-player% -999 200 999"
  47. command "/setwalls {@world} 1000"
  48. command "/wb uhc setcorners 1000 -1000 -1000 1000"
  49.  
  50. if arg 1 is equal to "500":
  51. command "/scoreboard objectives setdisplay sidebar UHC"
  52. broadcast "&6The border will shrink to 500x500 in 5 minutes!"
  53. wait 4 minutes
  54. broadcast "&6The border will shrink to 500x500 in 1 minute!"
  55. wait 30 seconds
  56. broadcast "&6The border will shrink to 500x500 in 30 seconds!"
  57. wait 20 seconds
  58. broadcast "&6The border will shrink to 500x500 in 10 seconds!"
  59. wait 7 seconds
  60. broadcast "&6The border will shrink to 500x500 in 3 seconds!"
  61. wait 1 second
  62. broadcast "&6The border will shrink to 500x500 in 2 seconds!"
  63. wait 1 second
  64. broadcast "&6The border will shrink to 500x500 in 1 seconds!"
  65. wait 1 second
  66. broadcast "&6All players that were outside of 500x500 were teleported to 500, 500!"
  67. loop all players:
  68. if loop-player's x-coordinate is smaller than -500:
  69. if loop-player's z-coordinate is smaller than -500:
  70. command "/tp %loop-player% -499 200 -499"
  71. command "/setwalls {@world} 500"
  72. command "/wb uhc setcorners 500 -500 -500 500"
  73. if loop-player's x-coordinate is larger than 500:
  74. if loop-player's z-coordinate is larger than 500:
  75. command "/tp %loop-player% 499 200 499"
  76. command "/setwalls {@world} 500"
  77. command "/wb uhc setcorners 500 -500 -500 500"
  78. if loop-player's x-coordinate is larger than 500:
  79. if loop-player's z-coordinate is smaller than -500:
  80. command "/tp %loop-player% 499 200 -499"
  81. command "/setwalls {@world} 500"
  82. command "/wb uhc setcorners 500 -500 -500 500"
  83. if loop-player's x-coordinate is smaller than -500:
  84. if loop-player's z-coordinate is larger than 500:
  85. command "/tp %loop-player% -499 200 499"
  86. command "/setwalls {@world} 500"
  87. command "/wb uhc setcorners 500 -500 -500 500"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement