Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ---------------------------- #
- # TimeTnT Skript #
- # Author: GlobooX #
- # For: MinecraftPolska.Net #
- # ---------------------------- #
- on load:
- if {timetnt} is not set:
- set {timetnt} to true
- # ------------------- #
- # KONFIGURACJA #
- # ------------------- #
- options:
- tag: &6[&eTimeTnT&6] # PREFIX WIADOMOŚCI
- msg: &cTnT oraz Creepery dostępne są w godzinach od (time-on) do (time-off)
- # KOMUNIKAT. ZMIENNE: (time-on) = Godzina włączenia TNT / (time-on) = Godzina wylączenia TNT
- check: 30 # CZAS W SEKUNDACH, CO ILE MA SPRAWDZAĆ AKTUALNĄ GODZINĘ
- tnt-set-on: 7 # O KÓREJ GODZINIE MA ZOSTAĆ WŁĄCZONE TNT (MINUT NIE MA!)
- tnt-set-off: 23 # O KTÓREJ GODZINE MA ZOSTAĆ WYŁĄCZONE TNT (MINUT NIE MA!)
- # ------------------- #
- # KOD SKRYPTU #
- # ------------------- #
- every {@check} second:
- set {_check.time} to "%hour%" parsed as number
- if {timetnt} is false:
- if {_check.time} is equal to {@tnt-set-on}:
- set {timetnt} to true
- if {timetnt} is true:
- if {_check.time} is equal to {@tnt-set-off}:
- set {timetnt} to false
- on rightclick with a tnt:
- if {timetnt} is false:
- cancel event
- set {_msg} to "{@msg}"
- replace all "(time-on)" with "{@tnt-set-on}" in {_msg}
- replace all "(time-off)" with "{@tnt-set-off}" in {_msg}
- send "{@tag} %{_msg}%"
- on place tnt:
- if {timetnt} is false:
- cancel event
- set {_msg} to "{@msg}"
- replace all "(time-on)" with "{@tnt-set-on}" in {_msg}
- replace all "(time-off)" with "{@tnt-set-off}" in {_msg}
- send "{@tag} %{_msg}%"
- on explode:
- if {timetnt} is false:
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment