Stuff
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
|
||||
using Lidgren.Network;
|
||||
|
||||
@ -124,6 +125,11 @@ namespace CoopServer
|
||||
return Server.Players;
|
||||
}
|
||||
|
||||
public static Entities.EntitiesPlayer GetPlayerByUsername(string username)
|
||||
{
|
||||
return Server.Players.FirstOrDefault(x => x.Value.Username == username).Value;
|
||||
}
|
||||
|
||||
public static void KickPlayerByUsername(string username, string[] reason)
|
||||
{
|
||||
NetConnection userConnection = Util.GetConnectionByUsername(username);
|
||||
|
Reference in New Issue
Block a user