Hey,
This is just a quick fix for the ban bug people are experiencing
since i'm at the university i can't extensively test it but it seems to work
Simply insert it into the plugins folder and forget about is
Why half outdated, because the xuid dont end up in the permanen.ban file, but it still kicks if someone is in there
Virus scan:
https://www.virustotal.com/file/f5a92950...328536584/
Mirror:
http://94.75.245.138/plugins/BanFunction.dll
This is just a quick fix for the ban bug people are experiencing
since i'm at the university i can't extensively test it but it seems to work
Simply insert it into the plugins folder and forget about is
Why half outdated, because the xuid dont end up in the permanen.ban file, but it still kicks if someone is in there
Code:
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using Addon;
namespace BanFunction
{
public class BanFunction : CPlugin
{
public override void OnServerLoad()
{
ServerPrint("Ban fixer loaded");
}
public override string OnCheckBan(string xuid)
{
try
{
String line;
StreamReader sr = new StreamReader("main\\permanent.ban");
while ((line = sr.ReadLine()) != null)
{
string[] split = line.Split(' ');
if (split[0].Equals(xuid))
{
sr.Close();
return "You have been banned from this server";
}
}
}
catch (Exception e)
{
ServerPrint("An error has occured:" + e.Message);
}
return null;
}
}
}
https://www.virustotal.com/file/f5a92950...328536584/
Mirror:
http://94.75.245.138/plugins/BanFunction.dll