Jump to content

RustRCONRestartAnnouncer 1.0.0

$2.50
   (0 reviews)

1 Screenshot

  • 2.2k
  • 4
  • 2.69 kB

About RustRCONRestartAnnouncer

This plugin sends RCON Restart messages to your server using Linux Cron Jobs.

 

Yep,  it's  a  simple  tool.  that's  why  it's  so  cheap.

This  tool  is  made  to  be  used  in  combination  with  LinuxGSM  and  Cron  Jobs.

 

Prerequisites:

  • A  Linux  dedicated  server  that  lets  you:
    • Use  custom  files.
    • Install  Node/Run  Node
    • Set up  cron  jobs
    • Node LTS  -  v18.17.1  at the time  of  publishing.

 

Setup:

  • Unzip  on  your  server.
  • Run  `npm  i`  in  the  same  folder  as  the  `package.json`
  • Set  up  your  config  as  you  desire.  See Config  below
  • Set  up  cron  jobs.  See  LinuxGSM Cron Jobs.

 

Example  Cron  Jobs:

20  23  *  *  *    /user/bin/node  /home/rust/2xModded/RustRCONRestarter/src/main.js  >  /dev/null  2>&l

0  0  *  *  *  /home/rust/2xModded/rustserver  restart  >  /dev/null  2>&l

The  above  example starts  this  notice  at 11:30 pm and  then  runs  the  restart  command  at 12:00 am.

Hence,  why  default  config  is  30  Minutes  starting.

 

Config:

{

    "address":  "",

    "password":  "",



    "restartingInMessage":  "<color=#939393>The  server  will  be  restarting  in  <color=#cc3333>{0}</color>.</color>",

    "finalMessage":  "<color=#939393>The  server  will  be  restarting  <color=#cc3333>now</color>.</color>",

    "initialTime":  1800000,

    "initialTimeMsg":  "30  Minutes",

    "notices":  {

        "900000":  "15  Minutes"

    }

}

 

  • Address:  `192.168.0.1:28016`
  • Password:  `Super  cool  secure  password`
  • RestartingInMessage:  Just  like  a  rust  Lang  File,  you  can  use  colors.  {0}  will  be  replaced  with  your  notices  correlating  to  the  countdown  time.
  • Final  Message:  To  be  displayed  when the countdown  hits  0.
  • InitialTime:  What  time  to  start in  MS  (milliseconds).
  • Helpful Tool  After  hitting  10  Minutes,  I  recommend  doing  the  math  yourself.  (minute  *  60000)
    • 30  Minutes:  30  *  60000  (1800000)
  • Initial  Time  Msg:  This  should  probably  be  the  wording  of  your  Initial  Time.  So  if  your  Initial  Time  is  "1800000"  that  would  be  "30  Minutes".
  • Notices: an  object  of  string  keys,  with  the  correlating  display  text.
    • "900000"  is  equal  to  "15  Minutes"

.Nathaniel.'s Collection

User Feedback

1.7m

Downloads

Total number of downloads.

7.9k

Customers

Total customers served.

119.9k

Files Sold

Total number of files sold.

2.5m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.