Advertisement
Phe0X

Skript de MAJ

Feb 4th, 2017
921
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. options:
  2. ActuelVersion: 2.0
  3. OldVersion: 1.0
  4. on script load:
  5. if file "plugins/Skript/scripts/Update {@OldVersion}.sk" exists:
  6. df "plugins/Skript/scripts/Update {@OldVersion}.sk"
  7. wait 10 ticks
  8. make console execute command "/sk reload all"
  9. set {_Ver} to text from "http://pastebin.com/raw/CtVzw9CS"
  10. if {_ver} is not "2.0":
  11. send "[Update] MAJ du skript en cours..." to console
  12. download from "http://pastebin.com/raw/T6gKy00j" to "plugins/Skript/scripts/Update %{_ver}%.sk"
  13. send "[Update] MAJ du skript fini !" to console
  14. make console execute command "/sk reload Update %{_ver}%"
  15.  
  16. command /aYT:
  17. trigger:
  18. broadcast "1ere version"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement