Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[New API] Share variable between plugins

Comments in 'Plugin Development' started by Adaasi, Oct 25, 2014.

  1. Adaasi
    Offline

    Adaasi Active Member

    Joined:
    Aug 14, 2014
    Posts:
    80
    I'm trying to make a plugin with an integrated API and I want to share variables between plugins that use the API. How can I do?
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Make the variable saved in a public field. From the other plugin, $this->getServer()->getPluginManager()->getPlugin($sharerPluginName)->fieldName
    TonyDroidd and LDX like this.

Share This Page

Advertisement