Added unban/unbanip
Fixed banning when a player picks up lava/water Fixed name check for real this time. Fixed banning multiple times.
This commit is contained in:
parent
b7a87866fe
commit
6371a301da
4 changed files with 94 additions and 45 deletions
|
|
@ -47,10 +47,17 @@ namespace TShockAPI
|
|||
|
||||
public void AddBan(string ip, string name = "", string reason = "")
|
||||
{
|
||||
if (GetBanByIp(ip) != null)
|
||||
return;
|
||||
Bans.Add(new Ban(ip, name, reason));
|
||||
SaveBans();
|
||||
}
|
||||
|
||||
public void RemoveBan(Ban ban)
|
||||
{
|
||||
Bans.Remove(ban);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reloads the file if it was changed
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue