private static void StartGM() { if (server != null) { server.Stop(); server = null; } server = new GMServer("/gm", false); server.Init(); server.Start(ConfigLoader.Config.EpGMM); }
public override void Execute(INotification notification) { GMNote note = notification as GMNote; if (note == null) { if (notification.Name == GMCommand.GMStart) { StartGM(); } else if (notification.Name == Application.APPSTOP) { if (server != null) { server.Stop(); server = null; } } return; } }