fix ban server crash

This commit is contained in:
hydrant
2021-06-01 22:39:47 +02:00
parent a49712d963
commit ca3af417af

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
@@ -959,6 +959,11 @@ namespace ReallifeGamemode.Server.Commands
NAPI.Task.Run(() =>
{
if (!target.IsLoggedIn())
{
return;
}
target.GetUser().BanPlayer(admin, reason, mins);
}, 2500);
}