Reading CustomPluginOptions.JSON values during Startup

Discussion in 'Plugins' started by Jayhawk, Feb 16, 2016.

  1. Jayhawk

    Jayhawk Registered

    Joined:
    Feb 16, 2016
    Messages:
    1
    Likes Received:
    0
    Can someone provide an example of how to use the functions GetCustomVariable, AccessCustomVariable or GetCustomVariableSetting to access plugin variables? I'm not having any luck using these functions or I just don't know how to implement. Thanks in advance!
     
  2. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    1,314
    Likes Received:
    70
    Could you explain what exactly you mean?
    Normally you just have to set the Value:
    " Enabled":0,
    to
    " Enabled":1,

    in the CustomPluginOptions.JSON, to activate a Plugin.
    Anf if a Plugin, like the KnockoutQualifying.dll, gives you the Possibility to set different Values, you can edit them to match your needs.
     
  3. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    7,407
    Likes Received:
    3,096
    Na, he's talking about how to set and access those via plugin code. I'll try and put something up soon.
     
  4. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    1,314
    Likes Received:
    70
    Ah, now i see, i didn't take care for the "Modding"-Plugins Forum-Section. :)
     

Share This Page