On_PluginInit

Feb 8, 2015
On_PluginInit
  • Method:
    On_PluginInit

    Argument(s):
    None

    Examples:

    Python:

    Code (Python):
    def On_PluginInit(self):
        Server.Broadcast("My Plugin is running!")
    JavaScript:
    Code (Javascript):
    function On_PluginInit() {
        Server.Broadcast("My Plugin is running!");
    }

    C#:
    Code (C#):
    public override void Initialize()
    {
         Hooks.OnPluginInit += PluginInit;
    }

    public override void DeInitialize()
    {
         Hooks.OnPluginInit -= PluginInit;
    }

    public void PluginInit()
    {
         Server.GetServer().Broadcast("My Plugin is running!");
    }


Snake likes this.