Added compatibiliy shims for old method signatures without which existing compiled plugins will error with missing method ...
This fixes #410
This commit is contained in:
parent
d813a60060
commit
b6b5a2f1ca
5 changed files with 69 additions and 5 deletions
|
|
@ -110,6 +110,13 @@ namespace TShockAPI.DB
|
|||
return null;
|
||||
}
|
||||
|
||||
#if COMPAT_SIGS
|
||||
[Obsolete("This method is for signature compatibility for external code only")]
|
||||
public bool AddBan(string ip, string name, string reason)
|
||||
{
|
||||
return AddBan(ip, name, reason, false);
|
||||
}
|
||||
#endif
|
||||
public bool AddBan(string ip, string name = "", string reason = "", bool exceptions = false)
|
||||
{
|
||||
try
|
||||
|
|
@ -124,8 +131,14 @@ namespace TShockAPI.DB
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
#if COMPAT_SIGS
|
||||
[Obsolete("This method is for signature compatibility for external code only")]
|
||||
public bool RemoveBan(string ip)
|
||||
{
|
||||
return RemoveBan(ip, false, true, false);
|
||||
}
|
||||
#endif
|
||||
public bool RemoveBan(string match, bool byName = false, bool casesensitive = true, bool exceptions = false)
|
||||
{
|
||||
try
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue