256
edits
Line 34: | Line 34: | ||
} | } | ||
} | } | ||
</syntaxhighlight> | |||
</syntaxhighlight> | The first thing to note is the <syntaxhighlight lang="c#">using</syntaxhighlight> directives at the top. Those that start with Vintagestory will allow us to access classes in the Vintagestory api. Next the <syntaxhighlight lang="c#">StartServerSide</syntaxhighlight> is a method we are overriding from <syntaxhighlight lang="c#">ModBase</syntaxhighlight> that is called once when the server is start up. Here we start by just storing a reference to the <syntaxhighlight lang="c#">ICoreServerAPI</syntaxhighlight> for convenient access later. We will also be registering call backs for other events here. | ||
== The /treasure command == | == The /treasure command == |
edits