Skip to content
This repository has been archived by the owner on Feb 13, 2018. It is now read-only.

CoCSharp.Client Write A Plugin

FICTURE7 edited this page Sep 30, 2015 · 2 revisions

Write a Plugin

You can get an example project here.

First create a new Class Library project, name it what ever you want to. Make sure it is .NET 4.5.

Create a new project

Now add CoCSharp and CoCSharp.Client.API as a reference to the project.

Add references

Once you're done with that you need to create a class and call it what ever you like but it would be better if named it to the name of the plugin, like PrintPlayerInfoPlugin.

Then make sure that the class inherits from the Plugin class. See CoCSharp.Client.API Documentation.

Like this

Inherit from Plugin

Then you type de codez and can do something like this.

Type de Codez

To run your plugin just copy the compiled plugin into the plugins folder.

Tip

You can use a post build event command that copies the compiled plugin into the plugins folder part.

Clone this wiki locally