1. I need to have plugin FriendAPI as reference inside my plugin:

    [PluginReference("0friendsAPI")]
    Plugin 0friendsAPI;

    0f marks that as a not valid token!
    [DOUBLEPOST=1452722005][/DOUBLEPOST](of)riendsAPI;
    [DOUBLEPOST=1452722018][/DOUBLEPOST]That 0f its a Zero
     
  2. [PluginReference]
    Plugin 0friendsAPI;

    Give this a try.

    Make sure to also use this, you can do it in the Loaded() hook.
    if (!0friendsAPI)
    PrintWarning("You need to have this plugin installed, go to ...);
     
  3. Wulf

    Wulf Community Admin

    It's a zero, not a letter o. You also do not need to reference it two times, the part in quotations is for the literal reference, the 2nd part is for a friendly name if desired. Plugin references rely on the plugin filename to be exact, otherwise they will not work.
    Code:
    [PluginReference("0friendsAPI")] FriendsAPI
    The above will allow you to use 'FriendsAPI' for your calls, instead of the literal filename.