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

Per world Plugin

Discussion in 'Requests' started by Jackins, Mar 16, 2017.

  1. Jackins

    Jackins Slime

    Messages:
    92
    Hello everybody!
    It's possible to create a plugin that set in what world others plugins must work?
     
  2. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    It's not possible.
     
  3. TheDiamondYT

    TheDiamondYT Zombie

    Messages:
    298
    GitHub:
    TheDiamondYT1
  4. Jackins

    Jackins Slime

    Messages:
    92
  5. TheDiamondYT

    TheDiamondYT Zombie

    Messages:
    298
    GitHub:
    TheDiamondYT1
    That's why i said its probably not possible in PHP.
     
  6. Jackins

    Jackins Slime

    Messages:
    92
    Oh
    ... Ok
     
  7. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    If it was written in java, then that's just proof that it can be done! (not that I have the time to do it myself...)
     
    AtomicGT200 likes this.
  8. Junkdude

    Junkdude Zombie

    Messages:
    346
    GitHub:
    JunkDaCoder
    yes and no, you can just check if the player is in a certian world and runs an event in that world
     
  9. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    My understanding is:
    That alone wouldn't work well. You would have to cancel any and all functions from certain plugins from being executed for those worlds. Supporting all plugins is even more extreme. Example: You want to disable FactionsPro, but keep McMMO enabled. Both listen for BlockBreakEvent and BlockPlaceEvent, so what can you do? You can't cancel events for one particular plugin externally, without modifying something. Not with the current event system in PM, anyway.
     
  10. Jackins

    Jackins Slime

    Messages:
    92
    I have some bugs on my plugins,
    Example
    Chestshop.
    Chestshop doesn't give player permission to use normal chests for put or pick up items in chests because the plugin bugs it.
    So if chestshop PLUGIN works only in lobby, maybe bug can be fixed.

    Other plugins can be fixed with this metod.

    And it's more beautiful.
     
  11. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    The plugin could cancel the events and send its own to each individual plugin
     
    Jackins likes this.
  12. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    I think that would work for most plugins. Not all plugins use event listeners though.
    If that's a bug with the plugin, you should create an issue on the plugin's github repo.
     
  13. Jackins

    Jackins Slime

    Messages:
    92
    A
    Always do it but he closed my issue with no response... So...
     
  14. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    Can you link me to the issue?
     
  15. Jackins

    Jackins Slime

    Messages:
    92
  16. Jackins

    Jackins Slime

    Messages:
    92
    this is my problem...
     
  17. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
  18. Jackins

    Jackins Slime

    Messages:
    92
    My issue explain all the problem i have.
    normal Chests just dont works on my server because the plugin give problems to it.
     
  19. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    That's real specific... You try debugging code going only on what you just said.
     
  20. Jackins

    Jackins Slime

    Messages:
    92
    I've specified that the problem is not only in that plugin............ Need just read thread.
     
  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.