fix ban server crash
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user