Пример #1
0
 public void OnEnable(PluginContext context)
 {
     ConsoleFunctions.WriteInfoLine("[MiNET PC] Loading...");
     PluginGlobals.Initialize();
     PluginGlobals.PluginContext = context;
     PluginGlobals.Level = context.Levels;
     ConsoleFunctions.WriteInfoLine("[MiNET PC] Initiating server...");
     new Thread(() => new Networking.BasicListener().ListenForClients()).Start();
     new Ticks().StartTimeOfDayTimer();
 }
Пример #2
0
 public void OnEnable(PluginContext context)
 {
     Context = context;
     OnEnable();
 }