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 "tnt-is-off"
- # ------------------- #
- # KONFIGURACJA #
- # ------------------- #
- options:
- check: 1 # 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 "tnt-is-off":
- if {_check.time} is equal to {@tnt-set-on}:
- set {timetnt} to "tnt-is-on"
- if {timetnt} is "tnt-is-on":
- if {_check.time} is equal to {@tnt-set-off}:
- set {timetnt} to "tnt-is-off"
- on rightclick with a tnt:
- if {timetnt} is "tnt-is-off":
- cancel event
- send "&6[&eTimeTnT&6] &cTnT oraz Creepery dostępne są w godzinach od {@tnt-set-on} do {@tnt-set-off}"
- on explode:
- if {timetnt} is "tnt-is-off":
- cancel event
- send "&6[&eTimeTnT&6] &cTnT oraz Creepery dostępne są w godzinach od {@tnt-set-on} do {@tnt-set-off}"
- on place tnt:
- if {timetnt} is "tnt-is-off":
- cancel event
- send "&6[&eTimeTnT&6] &cTnT oraz Creepery dostępne są w godzinach od {@tnt-set-on} do {@tnt-set-off}"
Advertisement
Add Comment
Please, Sign In to add comment