Building plugins for Baiters is really easy!
Save time by using the plugin template repository to create your plugin.
Alternatively, there is an example plugin on this repository, the ChatCommands plugin, so feel free to use that as a basis.
- Create a new .NET Core library project
- Install the
GLOKON.Baiters.Core
NuGet package using your package manager - Extend the
GLOKON.Baiters.Core.Plugins.BaitersPlugin
class to create your own Plugin entry point (Itmust
haveGLOKON.Baiters.Core.GameManager
as its only parameter for the constructor) - Build your plugin, use the GLOKON.Baiters.Core.GameManager to interact with the server, listen to events, etc.
- Release your plugin, make sure the plugin assembly file name ends with
.BaitersPlugin.dll