You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the Synapse.dll to your project. (Please note that it is recomended to include the Assembly-CSharp-Synapse-publicized.dll for most Applications.)
Create a Class which inherit from Synapse.Plugin and override void OnEnable() and string GetName to the Class.
Doing that should resolve in a Plugin that is looking like this:
using Synapse;
namespace Example
{
public class Example : Plugin
{
public override void OnEnable()
{
}
public override string GetName => "YourPluginName";
}
}
The Method OnEnable will be called by Synapse when your plugin gets loaded. For example: You can add Log.Info("Hello World"); to log a Hello World message inside your Server Console.
Next-Step is to look into the Events to hook them and create your real first plugin. :)