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:
Lucas Nicodemus 2017-12-02 20:59:30 -07:00
parent 35c61e53f1
commit 39733a116d
2 changed files with 4 additions and 4 deletions

View file

@ -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
{