28 lines
636 B
C#
28 lines
636 B
C#
using CommandHook;
|
|
using Vintagestory.API.Common;
|
|
using Vintagestory.API.Server;
|
|
|
|
namespace ClaimLink;
|
|
|
|
public class ClaimLinkModSystem : ModSystem
|
|
{
|
|
internal ClaimLinkCommandListener? cmdListener;
|
|
|
|
public override bool ShouldLoad(EnumAppSide forSide) => forSide == EnumAppSide.Server;
|
|
|
|
public override void StartServerSide(ICoreServerAPI api)
|
|
{
|
|
cmdListener = new ClaimLinkCommandListener();
|
|
CommandHookModSystem.Register(cmdListener);
|
|
}
|
|
|
|
public override void Dispose()
|
|
{
|
|
if (cmdListener == null)
|
|
return;
|
|
|
|
CommandHookModSystem.Unregister(cmdListener);
|
|
}
|
|
}
|
|
|