Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #Day names | Please write the names of the day skript at your location uses (usually english)
- monday: montag
- tuesday: dienstag
- wednesday: mittwoch
- thursday: donnerstag
- friday: freitag
- saturday: samstag
- sunday: sonntag
- #Event day
- #The day the event starts
- startday: samstag
- #The day the event ends
- endday: samstag
- #Event start
- start: 6:00 pm
- #Event end
- end: 9:00 pm
- #Title that is displayed in chat
- eventtitle: &eEvent &8|
- #Raid command
- commandraid: raid
- #Main color
- eventc1: &e
- #Reminder on join? (yes/no)
- joinrem: yes
- #Messages
- #Event starting message
- m-ev-start: &7The event has started!
- #Event ending message
- m-ev-end: &7The event is now over!
- #Event reminder message
- m-ev-rem: &7There's an event going on!
- #Teleportation message
- m-ev-tp: &7Teleporting to event...
- #No running event:
- m-ev-noev: &7There is no event running right now!
- on load:
- if {eventraid::running} is not set:
- set {eventraid::running} to false
- every 15 second:
- set {_now} to now formatted as "EEEE|h:mm a"
- set {_now::*} to {_now} split at "|"
- if {_now::1} = "{@startday}":
- if {_now::2} = "{@start}":
- if {eventraid::running} is false:
- send "%nl%%nl%{@eventtitle} {@m-ev-start}%nl%%nl%" to all players
- set {eventraid::running} to true
- if {_now::1} = "{@endday}":
- if {_now::2} = "{@end}":
- if {eventraid::running} is true:
- send "%nl%%nl%{@eventtitle} {@m-ev-end}%nl%%nl%" to all players
- set {eventraid::running} to false
- on join:
- if {eventraid::running} is true:
- if "{@joinrem}" = "yes":
- wait 1 second
- send "%nl%%nl%{@eventtitle} {@m-ev-rem}%nl%{@eventtitle} {@eventc1}/{@commandraid} &7to join!%nl%%nl%" to player
- command /{@commandraid} [<text>]:
- trigger:
- if arg 1 is not set:
- if {eventraid::location} is set:
- if {eventraid::running} is true:
- teleport player to {eventraid::location}
- send "{@eventtitle} {@m-ev-tp}"
- else:
- send "{@eventtitle} {@m-ev-noev}"
- else:
- send "{@eventtitle} &c&oError: &7Seems like the start location is not set!"
- else if arg 1 is "setstart":
- player has permission "raid.setstart":
- set {eventraid::location} to location of player
- send "{@eventtitle} &7The start has been set to your location!"
- else:
- send "{@eventtitle} &cSeems like you don't have the required permission to use this command!"
- else:
- if {eventraid::location} is set:
- if {eventraid::running} is true:
- teleport player to {eventraid::location}
- send "{@eventtitle} {@m-ev-tp}"
- else:
- send "{@eventtitle} {@m-ev-noev}"
- else:
- send "{@eventtitle} &c&oError: &7Seems like the start location is not set!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement