1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

How to turn off a plugin at different world

Discussion in 'Help' started by Vadim Bogoratov, Mar 5, 2018.

  1. Vadim Bogoratov

    Vadim Bogoratov Spider

    Messages:
    14
    Hello there!
    I have FactionsPro and SkyWars on my PocketMine, so the problem is that players who belong to the same Clan can not pvp each other. I want to turn off that function at different world where the map of SkyWars is.

    Is there a function that turns off some plugins? Or smth like:

    if($level->getName() == world){
    some function
    }else{ pvp off
     
  2. MioTaku

    MioTaku Witch

    Messages:
    69
    GitHub:
    uselesswaifu
    That requires making a plugin
     
  3. Vadim Bogoratov

    Vadim Bogoratov Spider

    Messages:
    14
    And that's the idea :)

    I need a function that would turn off the plugin...
     
  4. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    You can fork FactionsPro in poggit-orphanage and add a config option to disable pvp restrictions in certain worlds.
     
  5. Vadim Bogoratov

    Vadim Bogoratov Spider

    Messages:
    14
    Never heard about poggit-orphanage. Could you give some more details, please?
     
  6. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    They fork some abandoned plugins and update them.
     
  7. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.