mirror of
https://github.com/MrOkiDoki/BattleBit-Community-Server-API.git
synced 2024-06-22 15:31:54 -04:00
27 lines
516 B
C#
27 lines
516 B
C#
using BattleBitAPI;
|
|
using BattleBitAPI.Common;
|
|
using BattleBitAPI.Server;
|
|
using System.Net;
|
|
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
var listener = new ServerListener<MyPlayer, MyGameServer>();
|
|
|
|
listener.Start(29294);
|
|
Thread.Sleep(-1);
|
|
}
|
|
}
|
|
class MyPlayer : Player<MyPlayer>
|
|
{
|
|
|
|
}
|
|
class MyGameServer : GameServer<MyPlayer>
|
|
{
|
|
public override async Task<bool> OnPlayerTypedMessage(MyPlayer player, ChatChannel channel, string msg)
|
|
{
|
|
return true;
|
|
}
|
|
}
|