JaVaScRiPt code help

Discussion in 'Plugin Development' started by Crowdy199(9), May 26, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Crowdy199(9)

    i am trying to make a java script where every 3 hr my server types ./say the server is restarting then it type /stop and then it starts run.bat up agin i don t no the code for the javascript plz help
     
  2. Offline

    Gravity

    Java script won't do that... do you mean java? If you're on linux, just use cron.
     
  3. Offline

    Crowdy199(9)

    i am on windows when i said javascript i men .bat file
     
  4. Offline

    Lolmewn

    That's Java. I recommend using Spacebukkit for this.
     
  5. Offline

    Gravity

    .bat's aren't java..
     
  6. Offline

    Lolmewn

    No, they're not. I might have put it wrong.. .bat is windows shell if I recall correctly.
     
  7. Offline

    Gravity

    Well, shell scripts are technically for linux, but yeah it's a batch file that the shell reads and executes.
     
  8. Offline

    Crowdy199(9)

    so how do i make it so every 3 hr my server types ./say the server is restarting then it type /stop and then it starts run.bat up agin i don t no the code for the javascript plz help

    so how do i make my server every 3 hr my server types ./say the server is restarting then it type /stop and then it starts run.bat up agin i don t no the code for the javascript plz help

    so how do i make my server every 3 hr my server types ./say the server is restarting then it type /stop and then it starts run.bat up agin i don t no how to do it plz help

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
  9. Offline

    Lolmewn

    TRIPPLE POST!
    Spacebukkit.
     
  10. Offline

    Coryf88

  11. Offline

    Crowdy199(9)

    but that did not work and it crashed my computer :(
     
  12. In windows .bat is not java or javascript, .bat files are batch files which are executed by the command prompt on your computer. For as far as i know is what you try not possible with only .bat files.
    greetz blackwolf12333
     
  13. Offline

    Crowdy199(9)

    well i am trying to make a .bat where every time my run.bat stops it turns back on as long as the .bat i am trying to make is open some guy told me how do do it but when i tested it it open run.bat 50 times and crashed my computer :(
     
  14. Offline

    Gravity

Thread Status:
Not open for further replies.

Share This Page