Advertisement
herhor67

RealTime - herhor67

May 29th, 2014
842
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. options:
  2. tag: &7[&2Real&1Time&7]
  3.  
  4. on script load:
  5. if file "plugins/Skript/realtime/config.yml" isn't exist:
  6. create file "plugins/Skript/realtime/config.yml"
  7. download "https://raw.githubusercontent.com/herhor67/miniskrypty/master/config.yml" to create file "plugins/Skript/realtime/config.yml"
  8. set {realtime::worlds::*} to value list "worlds" get of "plugins/Skript/realtime/config.yml"
  9. loop {realtime::worlds::*}:
  10. broadcast "%loop-value%"
  11.  
  12. every minute:
  13. set {_obecna.godzina} to text from url "http://nicc0.pl/godzina.txt"
  14. {_obecna.godzina} is set:
  15. {_obecna.godzina} contains "404" or "not" or "found" or "error" or "403" or "forbidden":
  16. stop
  17. execute server command "/time set %{_obecna.godzina}% world" #kopiuj tฤ… linijkฤ™ i wklejaj, tylko zamieniaj nazwy ล›wiatรณw
  18. chance of 1%:
  19. broadcast "{@tag} &6Mamy godzine %{_obecna.godzina}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement