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

Plugin attempted to register popupmessage

Discussion in 'Development' started by CupidonSauce173, Jul 27, 2018.

  1. CupidonSauce173

    CupidonSauce173 Zombie

    Messages:
    298
    GitHub:
    cupidonsauce173
    [16:19:57] [Server thread/CRITICAL]: pocketmine\plugin\PluginException: "Plugin attempted to register popupmessage\Main while not enabled" (EXCEPTION) in "src/pocketmine/plugin/PluginManager" at line 781

    Hey so I made a plugin that implant ShulkerBox and now I get this error...I don't know what code I have to show.
     
  2. hikingjungle

    hikingjungle Baby Zombie

    Messages:
    123
    GitHub:
    hikingjungle
    could you post your code ?
     
  3. CupidonSauce173

    CupidonSauce173 Zombie

    Messages:
    298
    GitHub:
    cupidonsauce173
    Code:
    use cupidonsauce173\block\BlockManager;
    use cupidonsauce173\entity\EntityManager;
    use cupidonsauce173\task\TickLevelsTask;
    use pocketmine\plugin\PluginBase;
    use pocketmine\plugin\PluginLogger;
    
    class Main extends PluginBase {
    
        public static $shulkerBoxEnabled = true;
        
        private static $instance;
    
        public static function getInstance(): Main{
            return self::$instance;
        }
    
        public function onEnable(){
            $this->loadEverythingElse();
        }
    
        private function loadEverythingElse(){
            BlockManager::init();
            EntityManager::init();
            }
    
        public function onDisable(){
        }
    
    
    }
    for main
     
  4. hikingjungle

    hikingjungle Baby Zombie

    Messages:
    123
    GitHub:
    hikingjungle
    do you have a part of your plugin that has to do with popupmessage\Main
    possibility used in one of:

    use cupidonsauce173\block\BlockManager;
    use cupidonsauce173\entity\EntityManager;
    use cupidonsauce173\task\TickLevelsTask;
     
  5. CupidonSauce173

    CupidonSauce173 Zombie

    Messages:
    298
    GitHub:
    cupidonsauce173
    no
     
  6. CupidonSauce173

    CupidonSauce173 Zombie

    Messages:
    298
    GitHub:
    cupidonsauce173
    I mean, I searched popupmessage on the pmmp github page too (including my plugin) and it found nothing too..
     
  7. hikingjungle

    hikingjungle Baby Zombie

    Messages:
    123
    GitHub:
    hikingjungle
    did you search the code of those three for a reference to it?
     
  8. CupidonSauce173

    CupidonSauce173 Zombie

    Messages:
    298
    GitHub:
    cupidonsauce173
    Yes I took and edited a part of TeaSpoon for it, I only took everything linked to Shulker and removed everything that was useless
     
  9. hikingjungle

    hikingjungle Baby Zombie

    Messages:
    123
    GitHub:
    hikingjungle
    do skulker boxes work when you use the whole plugin?
     
  10. CupidonSauce173

    CupidonSauce173 Zombie

    Messages:
    298
    GitHub:
    cupidonsauce173
    I didn't test, they didn't updated when 3.0.0 came
     
  11. CupidonSauce173

    CupidonSauce173 Zombie

    Messages:
    298
    GitHub:
    cupidonsauce173
    But then I searched for "popupmessage" on previous pmmp version and I found nothing
     
  12. hikingjungle

    hikingjungle Baby Zombie

    Messages:
    123
    GitHub:
    hikingjungle
  13. CupidonSauce173

    CupidonSauce173 Zombie

    Messages:
    298
    GitHub:
    cupidonsauce173
  14. hikingjungle

    hikingjungle Baby Zombie

    Messages:
    123
    GitHub:
    hikingjungle
    it could be that they just don't work yet in teaspoon
     
  15. hikingjungle

    hikingjungle Baby Zombie

    Messages:
    123
    GitHub:
    hikingjungle
    have you tried using your plugin with out any other plugins?
     
  16. CupidonSauce173

    CupidonSauce173 Zombie

    Messages:
    298
    GitHub:
    cupidonsauce173
    with TeaSpoon, it's working I can place one but I don't have access to the inventory and yes I tried with no plugin and it same as when there is plugins
     
  17. hikingjungle

    hikingjungle Baby Zombie

    Messages:
    123
    GitHub:
    hikingjungle
    thats odd
     
  18. hikingjungle

    hikingjungle Baby Zombie

    Messages:
    123
    GitHub:
    hikingjungle
    have you tried it with a fresh server (not just a fresh .phar)?
     
  19. hikingjungle

    hikingjungle Baby Zombie

    Messages:
    123
    GitHub:
    hikingjungle
    you may have to use the entire teaspoon plugin if you want shulkers
     
  20. CupidonSauce173

    CupidonSauce173 Zombie

    Messages:
    298
    GitHub:
    cupidonsauce173
    Inventory is not working but thank you for the help!
     
  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.