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

plugins "linking" themselves together.

Comments in 'Plugin Development' started by Hotshot_9930, Jul 15, 2015.

  1. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    Hi, this has happened to me a few times and it can be very frustrating. Lets say i created a plugin called "plugin1" it works fine. I then create another plugin called "plugin2", plugin2 creats a data folder called "Players" when its enabled. When i go to plugin1's folder i see a data folder called "Players" too, even though its not supposed to be there. Then weird things start to happen with either one of the plugins like events happening twice and so on. Ive noticed it only happens with plugins ive created. My question is why does this happen? And how to i stop it from happening? The only solution i have found so far is by completey re writing one of the plugins.
  2. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    Could you give a better description of your coding environment? Are you managing both plugins in the same folder?
  3. wolfdale
    Offline

    wolfdale Active Member Plugin Developer

    Joined:
    Dec 3, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    ace
    Is plugin2 a clone of plugin1?
  4. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    No they are seperate plugins. Some of the code in them are identical though but i dont think that should matter. This has happened to me in the past and I fixed it by just completely re writing one of the plugins.
  5. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    No they do different things.
  6. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    Don't use the same "custom folder" name, or even change pkugin's names
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Your plugins have the same name?
  8. CrazedMiner
    Offline

    CrazedMiner Notable Member Plugin Developer

    Joined:
    Jan 31, 2015
    Posts:
    348
    Plugins:
    2
    Minecraft User:
    CrazedMinerYT
    If the plugins have the same name the data folder will be same and it will cause problems.
  9. MikkiMCPE
    Offline

    MikkiMCPE Active Member

    Joined:
    May 16, 2015
    Posts:
    125
    Minecraft User:
    MikkiMC
    maybe your mean to make plugin like Lbsg core? 1 plugin but have many plugin inside?
  10. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    They have completely different names.
  11. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    No these are seperate

Share This Page

Advertisement