# Check for low TPS if 'mspt' in stats['tps']: mspt = float(stats['tps'].split('mspt')[0].split()[-1]) if mspt > 50: # 50ms = 20 TPS, higher means lower performance self.send_alert(f"High MSPT detected: msptms")
You can also run a quick RCON command directly from your terminal without writing a full script:
def auto_restart(): with Client(**RCON_CONFIG) as rcon: rcon.run('say Server restarting in 10 seconds...') time.sleep(10) rcon.run('kick @a Server maintenance') time.sleep(2) rcon.run('stop')
monitor = ServerMonitor( rcon_config='host':'localhost','port':25575,'password':'pass', email_config={} )
def interactive_console(server_name): config = SERVERS.get(server_name)
Rcon Python !!top!! 【LATEST】
# Check for low TPS if 'mspt' in stats['tps']: mspt = float(stats['tps'].split('mspt')[0].split()[-1]) if mspt > 50: # 50ms = 20 TPS, higher means lower performance self.send_alert(f"High MSPT detected: msptms")
You can also run a quick RCON command directly from your terminal without writing a full script: rcon python
def auto_restart(): with Client(**RCON_CONFIG) as rcon: rcon.run('say Server restarting in 10 seconds...') time.sleep(10) rcon.run('kick @a Server maintenance') time.sleep(2) rcon.run('stop') # Check for low TPS if 'mspt' in
monitor = ServerMonitor( rcon_config='host':'localhost','port':25575,'password':'pass', email_config={} ) 50: # 50ms = 20 TPS
def interactive_console(server_name): config = SERVERS.get(server_name)