Advertisement
StarBunnie

Untitled

Jun 16th, 2021
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. options:
  2. #Day names | Please write the names of the day skript at your location uses (usually english)
  3. monday: montag
  4. tuesday: dienstag
  5. wednesday: mittwoch
  6. thursday: donnerstag
  7. friday: freitag
  8. saturday: samstag
  9. sunday: sonntag
  10.  
  11. #Event day
  12. #The day the event starts
  13. startday: samstag
  14. #The day the event ends
  15. endday: samstag
  16.  
  17. #Event start
  18. start: 6:00 pm
  19.  
  20. #Event end
  21. end: 9:00 pm
  22.  
  23. #Title that is displayed in chat
  24. eventtitle: &eEvent &8|
  25.  
  26. #Raid command
  27. commandraid: raid
  28.  
  29. #Main color
  30. eventc1: &e
  31.  
  32. #Reminder on join? (yes/no)
  33. joinrem: yes
  34.  
  35. #Messages
  36. #Event starting message
  37. m-ev-start: &7The event has started!
  38. #Event ending message
  39. m-ev-end: &7The event is now over!
  40. #Event reminder message
  41. m-ev-rem: &7There's an event going on!
  42. #Teleportation message
  43. m-ev-tp: &7Teleporting to event...
  44. #No running event:
  45. m-ev-noev: &7There is no event running right now!
  46.  
  47. on load:
  48. if {eventraid::running} is not set:
  49. set {eventraid::running} to false
  50.  
  51. every 15 second:
  52. set {_now} to now formatted as "EEEE|h:mm a"
  53. set {_now::*} to {_now} split at "|"
  54. if {_now::1} = "{@startday}":
  55. if {_now::2} = "{@start}":
  56. if {eventraid::running} is false:
  57. send "%nl%%nl%{@eventtitle} {@m-ev-start}%nl%%nl%" to all players
  58. set {eventraid::running} to true
  59. if {_now::1} = "{@endday}":
  60. if {_now::2} = "{@end}":
  61. if {eventraid::running} is true:
  62. send "%nl%%nl%{@eventtitle} {@m-ev-end}%nl%%nl%" to all players
  63. set {eventraid::running} to false
  64.  
  65. on join:
  66. if {eventraid::running} is true:
  67. if "{@joinrem}" = "yes":
  68. wait 1 second
  69. send "%nl%%nl%{@eventtitle} {@m-ev-rem}%nl%{@eventtitle} {@eventc1}/{@commandraid} &7to join!%nl%%nl%" to player
  70.  
  71. command /{@commandraid} [<text>]:
  72. trigger:
  73. if arg 1 is not set:
  74. if {eventraid::location} is set:
  75. if {eventraid::running} is true:
  76. teleport player to {eventraid::location}
  77. send "{@eventtitle} {@m-ev-tp}"
  78. else:
  79. send "{@eventtitle} {@m-ev-noev}"
  80. else:
  81. send "{@eventtitle} &c&oError: &7Seems like the start location is not set!"
  82. else if arg 1 is "setstart":
  83. player has permission "raid.setstart":
  84. set {eventraid::location} to location of player
  85. send "{@eventtitle} &7The start has been set to your location!"
  86. else:
  87. send "{@eventtitle} &cSeems like you don't have the required permission to use this command!"
  88. else:
  89. if {eventraid::location} is set:
  90. if {eventraid::running} is true:
  91. teleport player to {eventraid::location}
  92. send "{@eventtitle} {@m-ev-tp}"
  93. else:
  94. send "{@eventtitle} {@m-ev-noev}"
  95. else:
  96. send "{@eventtitle} &c&oError: &7Seems like the start location is not set!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement