public void ReportforCheats(possibleExploit cheat) { SendError($"{cheatInfo[cheat]} exploit detected. ID:{(int)cheat}"); UpdateCount++; Client.Save(); Program.writeError($"Player {Client.Player.Name} used {cheatInfo[cheat]} exploit. ID:{(int)cheat}"); foreach (var i in Manager.Clients.Values) { if (i.Account.Rank > 1) { i.Player.SendError($"Player {Client.Player.Name} used {cheatInfo[cheat]} exploit. ID:{(int)cheat}"); } } }
public bool kickforCheats(possibleExploit cheat) { SendError($"{cheatInfo[cheat]} exploit detected. ID:{(int)cheat}"); UpdateCount++; Client.Save(); Client.Disconnect(networking.Client.DisconnectReason.EXPLOIT); Program.writeError($"Player {Client.Player.Name} used {cheatInfo[cheat]} exploit. ID: {(int)cheat}"); foreach (var i in Manager.Clients.Values) { if (i.Account.Rank > 1) { i.Player.SendError($"Player {Client.Player.Name} used {cheatInfo[cheat]} exploit. ID: {(int)cheat}"); } } return(false); }