BattleBit-Community-Server-API/Program.cs

30 lines
762 B
C#
Raw Normal View History

2023-07-28 03:24:00 +03:00
using BattleBitAPI;
using BattleBitAPI.Common;
using BattleBitAPI.Server;
2023-07-30 19:31:06 +03:00
using BattleBitAPI.Storage;
2023-07-28 03:24:00 +03:00
using System.Numerics;
2023-03-03 15:15:17 +03:00
class Program
{
static void Main(string[] args)
{
2023-07-28 03:24:00 +03:00
var listener = new ServerListener<MyPlayer>();
listener.OnGameServerTick += OnGameServerTick;
2023-07-28 03:24:00 +03:00
listener.Start(29294);//Port
Thread.Sleep(-1);
2023-03-03 15:15:17 +03:00
}
private static async Task OnGameServerTick(GameServer server)
2023-03-03 15:15:17 +03:00
{
//server.Settings.SpectatorEnabled = !server.Settings.SpectatorEnabled;
//server.MapRotation.AddToRotation("DustyDew");
//server.MapRotation.AddToRotation("District");
//server.GamemodeRotation.AddToRotation("CONQ");
//server.ForceEndGame();
2023-03-03 15:15:17 +03:00
}
2023-07-28 03:24:00 +03:00
}
class MyPlayer : Player
{
2023-07-28 03:24:00 +03:00
}