|
|
@@ -3,8 +3,8 @@ using System.IO; |
|
|
|
using System.Net; |
|
|
|
using System.Reflection; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using GamecraftModdingAPI.Commands; |
|
|
|
using IllusionPlugin; |
|
|
|
using TechbloxModdingAPI.Commands; |
|
|
|
using UnityEngine; |
|
|
|
|
|
|
|
namespace TBConsole |
|
|
@@ -18,7 +18,7 @@ namespace TBConsole |
|
|
|
private UnityLogHandler _logHandler; |
|
|
|
public override void OnApplicationStart() |
|
|
|
{ |
|
|
|
GamecraftModdingAPI.Main.Init(); |
|
|
|
TechbloxModdingAPI.Main.Init(); |
|
|
|
_server = new WebServer(CommandReceived); |
|
|
|
_server.Start(); |
|
|
|
} |
|
|
@@ -54,7 +54,7 @@ namespace TBConsole |
|
|
|
public override void OnApplicationQuit() |
|
|
|
{ |
|
|
|
_server.Stop(); |
|
|
|
GamecraftModdingAPI.Main.Shutdown(); |
|
|
|
TechbloxModdingAPI.Main.Shutdown(); |
|
|
|
} |
|
|
|
|
|
|
|
public static void Main(string[] args) |
|
|
|