Solved Plugin Not Loading (No Error In Console)

Discussion in 'Plugin Help' started by Mintical, Dec 9, 2018.

  1. Mintical

    Mintical Creeper

    Messages:
    5
    GitHub:
    minticalcode
    Ok so, I was working on a plugin, and then I tried testing it, but the only plugin that loaded was DevTools (latest build from poggit) but the plugin that I had added did not load. I'm so confused, as I asked many good devs but they don't know. Here are my 2 files:

    Main.php:

    PHP:
    <?php
    declare(strict_types=1);

    namespace 
    Mintical\QuickGamemode;

    use 
    pocketmine\plugin\PluginBase;

    use 
    pocketmine\event\Listener;

    use 
    pocketmine\Server;
    use 
    pocketmine\Player;

    class 
    Main extends PluginBase implements Listener {
     
      public function 
    onEnable(): void{
        
    $this->getLogger()->info("QuickGamemode by Mintical Enabled");
        
    $this->getServer()->getPluginManager()->registerEvents($this$this);
      }
     
      public function 
    onDisable(): void{
        
    $this->getLogger()->info("QuickGamemode by Mintical Disabled");
      }
     
    }
    Plugin.yml:
    Code:
    name: QuickGamemode
    description: Go to gamemodes quickly with this plugin
    
    main: Mintical\QuickGamemode\Main
    version: 1.0.0
    api: 3.2.0
    
    author: Mintical
    And my folders:
    [​IMG]

    DevTools is the only plugin loading, not QuickGamemode. Idk why this isn't loading, please help!
     
  2. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,894
    GitHub:
    sof3
    I hope you didn't get it wrong, but it should be plugins/QuickGamemode/plugin.yml The path might be case sensitive.
     
  3. Mintical

    Mintical Creeper

    Messages:
    5
    GitHub:
    minticalcode
    Oh, it was just something that happened with the zip files, everything is good.
     

Share This Page

  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.