mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 23:31:13 -05:00
Plugins loaded dynamically, some more bug fixes
This commit is contained in:
@ -7,6 +7,7 @@ namespace Webfront_Plugin
|
||||
public class Webfront : Plugin
|
||||
{
|
||||
private static Manager webManager;
|
||||
private static Thread webManagerThread;
|
||||
|
||||
public override void onEvent(Event E)
|
||||
{
|
||||
@ -28,12 +29,18 @@ namespace Webfront_Plugin
|
||||
public override void onLoad()
|
||||
{
|
||||
webManager = new Manager();
|
||||
Thread webManagerThread = new Thread(new ThreadStart(webManager.Init));
|
||||
webManagerThread = new Thread(new ThreadStart(webManager.Init));
|
||||
webManagerThread.Name = "Webfront";
|
||||
|
||||
webManagerThread.Start();
|
||||
}
|
||||
|
||||
public override void onUnload()
|
||||
{
|
||||
webManager.webScheduler.Stop();
|
||||
webManagerThread.Join();
|
||||
}
|
||||
|
||||
public override String Name
|
||||
{
|
||||
get { return "Webfront"; }
|
||||
|
Reference in New Issue
Block a user