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

2 Plugins 1 Array

Comments in 'Plugin Development' started by JackboyPlay, May 30, 2016.

  1. JackboyPlay
    Offline

    JackboyPlay Active Member

    Joined:
    Apr 25, 2015
    Posts:
    507
    Minecraft User:
    JackboyPlay
    For example: I have 2 plguins in plugin 1 exists an array called $tree how can I get informations from the array from plugin 2?
  2. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    After construct do in your second plugin $this->plugin->arrayVariable to get the array "arrayVariable"
    applqpak and JackboyPlay like this.
  3. JackboyPlay
    Offline

    JackboyPlay Active Member

    Joined:
    Apr 25, 2015
    Posts:
    507
    Minecraft User:
    JackboyPlay
    Can you send it as code? xD Please @MyNameIsTriXz
  4. TheNewHEROBRINE
    Offline

    TheNewHEROBRINE New Member

    Joined:
    Mar 5, 2016
    Posts:
    10
    Minecraft User:
    TheNewHEROBRINE
    PHP:
    $tree $this->getServer()->getPluginManager->getPlugin("Plugin name")->tree
    applqpak and JackboyPlay like this.
  5. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    PHP:
    $this->plugin->arrayVariable
    applqpak likes this.
  6. JackboyPlay
    Offline

    JackboyPlay Active Member

    Joined:
    Apr 25, 2015
    Posts:
    507
    Minecraft User:
    JackboyPlay
    Thanks :D

Share This Page

Advertisement