mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 07:13:58 -05:00
added preliminary heartbeat system
modified the deployment of outdated message inform user of invalid rcon password reworked layout of first time server setup fixed KDR not being properly truncated in some cases fixed duplicate game-end event more crash fixes
This commit is contained in:
24
Admin/Heartbeat.cs
Normal file
24
Admin/Heartbeat.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace IW4MAdmin
|
||||
{
|
||||
class Heartbeat
|
||||
{
|
||||
public Heartbeat(Server I)
|
||||
{
|
||||
Handle = new Connection("http://raidmax.org/IW4M/Admin");
|
||||
Instance = I;
|
||||
}
|
||||
|
||||
public void Send()
|
||||
{
|
||||
String URI = String.Format("http://raidmax.org/IW4M/Admin/heartbeat.php?address={0}&name={1}&map={2}&players={3}", Instance.getPort().ToString(), Instance.getName(), Instance.getMap(), Instance.getClientNum().ToString());
|
||||
Handle.Request(URI);
|
||||
}
|
||||
|
||||
private Connection Handle;
|
||||
private Server Instance;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user