Fix issue where temp bans were stored incorrectly
Bans were being stored as seconds, should be a DateTime in s format with seconds added on to existing time.
This commit is contained in:
parent
35c61e53f1
commit
39733a116d
2 changed files with 4 additions and 4 deletions
|
|
@ -1387,7 +1387,7 @@ namespace TShockAPI
|
|||
DateTime exp;
|
||||
if (!DateTime.TryParse(ban.Expiration, out exp))
|
||||
{
|
||||
player.Disconnect("You are banned forever: " + ban.Reason);
|
||||
player.Disconnect("Permanently banned for: " + ban.Reason);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue