public override void Stop() { TeamspeakServerInterface i = new TeamspeakServerInterface(this.configuration.Host); i.SuperAdminLogin("Justin", "msi11496"); i.StopServer(this.configuration.Port); base.Stop(); }
public Form1() { // // Required for Windows Form Designer support // InitializeComponent(); ts = new TeamspeakServerInterface("70.84.125.228"); }
private void SlapperMethod(int playerNumber, int length) { Console.WriteLine(playerNumber); TeamspeakServerInterface tsi = new TeamspeakServerInterface("70.84.125.228"); tsi.SuperAdminLogin(txtUsername.Text, txtPassword.Text); tsi.Query(Convert.ToInt32(this.txtPort.Text)); tsi.Slap(playerNumber, length); }
/// <summary> /// Queries the Teamspeak server and stores the results. /// </summary> public void Query() { TeamspeakServerInterface i = new TeamspeakServerInterface(this.host); try { i.Query(this.port); this.serverInfo = i.ServerInfo; } catch (Exception ex) { if (QueryFailed != null) { QueryFailed(this, new QueryFailedEventArgs(ex)); } } }