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

World and Plugin

Comments in 'Plugin Development' started by VoBIs, May 2, 2016.

  1. VoBIs
    Offline

    VoBIs New Member

    Joined:
    Jun 20, 2015
    Posts:
    18
    Minecraft User:
    VoBIs
    Hi,
    how to make the plugin work only in a certain world?

    Thanks a lot for your answers!
    by FIIRERO(vk.com/hvladich)
  2. CookieSteve
    Offline

    CookieSteve Active Member

    Joined:
    Apr 22, 2014
    Posts:
    132
    Minecraft User:
    iStrqfeChris
    You can't Make a plugin simply not "Work" in a world What do you not want the plugin to do when ur in a differnt world? you can block commands or edit the Plugin code and do check if the payer is in a certain world
  3. udwarf
    Offline

    udwarf Active Member

    Joined:
    Apr 17, 2016
    Posts:
    61
    Minecraft User:
    1Zaza
    Just test the name of the level and if not matches your "certain" world then call "return"
  4. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    I think he is talking about 'command' in whole, if you know what I mean.
    PHP:
    /** @param PlayerCommandPreProcessEvent $e */
    $e->setCancelled(true);

Share This Page

Advertisement