2017-05-26 18:49:27 -04:00
|
|
|
|
using System;
|
|
|
|
|
using SharedLibrary;
|
2017-05-27 00:22:50 -04:00
|
|
|
|
using SharedLibrary.Interfaces;
|
2017-05-26 18:49:27 -04:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace MessageBoard.Plugin
|
|
|
|
|
{
|
|
|
|
|
public class Main : IPlugin
|
|
|
|
|
{
|
2017-06-13 18:33:47 -04:00
|
|
|
|
public static Forum.Manager ManagerInstance { get; private set; }
|
2017-05-26 18:49:27 -04:00
|
|
|
|
|
|
|
|
|
public string Author
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return "RaidMax";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public float Version
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return 0.1f;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Name
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return "Message Board Plugin";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-27 18:08:04 -04:00
|
|
|
|
public async Task OnLoadAsync()
|
2017-05-26 18:49:27 -04:00
|
|
|
|
{
|
2017-06-13 18:33:47 -04:00
|
|
|
|
ManagerInstance = new Forum.Manager();
|
|
|
|
|
ManagerInstance.Start();
|
2017-05-26 18:49:27 -04:00
|
|
|
|
}
|
|
|
|
|
|
2017-05-27 18:08:04 -04:00
|
|
|
|
public async Task OnUnloadAsync()
|
2017-05-26 18:49:27 -04:00
|
|
|
|
{
|
2017-06-13 18:33:47 -04:00
|
|
|
|
ManagerInstance.Stop();
|
2017-05-26 18:49:27 -04:00
|
|
|
|
}
|
|
|
|
|
|
2017-05-27 18:08:04 -04:00
|
|
|
|
public async Task OnTickAsync(Server S)
|
2017-05-26 18:49:27 -04:00
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-27 18:08:04 -04:00
|
|
|
|
public async Task OnEventAsync(Event E, Server S)
|
2017-05-26 18:49:27 -04:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|