I want to add a check when a server goes down for tcadmin. I would like to make it query the database to check a table that I am making, that will contain 2 things. The server ip:port and a number, 1 or 0. If the server finds a 1 I want it to run an update and change it to 0, then start. If 0, just start as normal.
I found the files for tcadmin, but they are not in php format so I don't know how to edit them. Does anyone have a way to do what I am looking to do?
This is all to make the servers auto update on a game update. I already have a plugin that brings the servers down when an update is found, I just need to add the part of making the change in the database.
Thank you for your time.