forked from MrOkiDoki/BattleBit-Community-Server-API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
29 lines (26 loc) · 762 Bytes
/
Program.cs
File metadata and controls
29 lines (26 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
{
}