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

How to load autoload.php in PMMP?

Discussion in 'Development' started by FUGAMARU, Mar 16, 2017.

  1. FUGAMARU

    FUGAMARU Spider

    Messages:
    14
    I want to load autoload.php in PMMP.
    So, I used require, require_once and include functions.
    But, PMMP stoped if used those functions.
    [​IMG]
    How to fix this problem?

    code is...
    PHP:
    <?php
    namespace EasyCHAT;

    use 
    pocketmine\Player;
    use 
    pocketmine\plugin\PluginBase;
    use 
    pocketmine\Server;
    use 
    pocketmine\event\Listener;
    use 
    pocketmine\event\player\PlayerChatEvent;
    use 
    pocketmine\utils\Config;
    use 
    EasyCHAT\Chat;
    use 
    Ratchet\MessageComponentInterface;
    use 
    Ratchet\ConnectionInterface;
    use 
    Ratchet\Server\IoServer;
    use 
    Ratchet\WebSocket\WsServer;
    use 
    Ratchet\Http\HttpServer;

    require 
    __DIR__.'/vendor/autoload.php';

    class 
    EasyCHAT extends PluginBase implements Listener{
    //....
     
  2. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    show autoload.php
     
  3. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    You're attempting to use Composer in a plugin? Wow... @SOFe I TOLD you people would want to do this. ;P
     
  4. FUGAMARU

    FUGAMARU Spider

    Messages:
    14
    Sorry.
    This is solved problem.
     
  5. FUGAMARU

    FUGAMARU Spider

    Messages:
    14
  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.