Module help

SILVA

New Member
Member
Mar 25, 2017
9
40
3
31
Brazil
I made a C # language plugin, how do I create the module. dll ... Thank you all for helping me.


...
Sorry for my english.
 

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
compile (Build) the plugin
get the .dll file from where your project is
put it in your servers module folder
 
  • Friendly
Reactions: SILVA

SILVA

New Member
Member
Mar 25, 2017
9
40
3
31
Brazil
ok ..
Would these command lines be to perform a function.?
--
public override void Initialize()
{
Hooks.OnCommand += CommandHandler;


public void CommandHandler(Fougerite.Player Player, string cmd, string[] args)
{
if (cmd == "help")
{
 

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
577
612
63
ok ..
Would these command lines be to perform a function.?
--
public override void Initialize()
{
Hooks.OnCommand += CommandHandler;


public void CommandHandler(Fougerite.Player Player, string cmd, string[] args)
{
if (cmd == "help")
{
C#:
public override void Initialize()
        {
            Fougerite.Hooks.OnCommand += OnCommand;       
        }
public override void DeInitialize()
        {
            Fougerite.Hooks.OnCommand -= OnCommand;
        }
public void OnCommand(Fougerite.Player player, string cmd, string[] args)
        {
            if (cmd == "hello")          
            {
            }
         }
 
  • Friendly
Reactions: SILVA