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
GrafDimenzio edited this page Jun 23, 2020
·
11 revisions
First Steps
Install a Scp Server with Synapse so you can test your Plugins and have all required files.
Goto your Serverfiles\SCPSL_Data\Managed and copy the assembly-CSharp.dll and publicize it (It is also recommended to copy the files Assembly-CSharp-firstpass,Mirror,UnityEngine.CoreModule to the same directory the publicized assembly is).
These files are your dependencies.Add them and the Synapse.dll to your project.
Create a Class which inheritance from Synapse.Plugin and then you should have 2 Errors.
add a void OnEnable() and a string GetName to the class and it should look 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 Plugins get loaded.In it you can start your Plugin.