mirror of
https://github.com/MrOkiDoki/BattleBit-Community-Server-API.git
synced 2025-01-28 12:07:16 -03:00
29 lines
762 B
C#
29 lines
762 B
C#
using BattleBitAPI;
|
|
using BattleBitAPI.Common;
|
|
using BattleBitAPI.Server;
|
|
using BattleBitAPI.Storage;
|
|
using System.Numerics;
|
|
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
var listener = new ServerListener<MyPlayer>();
|
|
listener.OnGameServerTick += OnGameServerTick;
|
|
listener.Start(29294);//Port
|
|
Thread.Sleep(-1);
|
|
}
|
|
|
|
private static async Task OnGameServerTick(GameServer server)
|
|
{
|
|
//server.Settings.SpectatorEnabled = !server.Settings.SpectatorEnabled;
|
|
//server.MapRotation.AddToRotation("DustyDew");
|
|
//server.MapRotation.AddToRotation("District");
|
|
//server.GamemodeRotation.AddToRotation("CONQ");
|
|
//server.ForceEndGame();
|
|
}
|
|
}
|
|
class MyPlayer : Player
|
|
{
|
|
|
|
}
|