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

Plugin not detecting

Discussion in 'Development' started by GEOEGII555, Aug 31, 2021.

  1. GEOEGII555

    GEOEGII555 Creeper

    Messages:
    1
    My plugin does not detecting by Pocketmine-mp
    > plugins
    > Plugins (0):
    But plugin exists in the folder
    My plugin code is attached
     

    Attached Files:

  2. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Look in the console to see why the plugin wasn't loaded.

    Are you using the right API version?
    Are you using the right namespaces?
     
    Agent likes this.
  3. Pinesolz

    Pinesolz Spider

    Messages:
    8
    GitHub:
    atlzz
    Update it to this, enable devtools.
    PHP:
    <?php

    namespace Main;

    use 
    pocketmine\event\Listener;
    use 
    pocketmine\plugin\PluginBase;

    class 
    MainClass extends PluginBase implements Listener {

              public function 
    onLoad(){
                        
    $this->getLogger()->info("Plugin Loading");
              }

              public function 
    onEnable(){
                        
    $this->getLogger()->info("Enabled Plugin");
              }

              public function 
    onDisable(){
                        
    $this->getLogger()->info("Plugin Disabled");
              }
    }
    PHP:
    nameMyPlugin
    main
    Main/MainClass
    version
    1.0.0
    author
    GEOEGII555
    api
    3.0.0
    description
    "My Plugin!"
    Choose one API and stick with it... You can't have multiple versions. (API 2 & API 3 are completely different versions of PocketMine)
     
  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.