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

EssentialsPE v2.1.0 Crash

Discussion in 'Plugin Help' started by WylSmart, Jul 4, 2020.

  1. WylSmart

    WylSmart Slime

    Messages:
    93
    Help me please very very thanks, my server in crash pmmp 3.13.1 plugin EssentialsPE 2.1.0

    Code:
    Error: Argument 1 passed to EssentialsPE\BaseFiles\BaseAPI::getSession() must be an instance of pocketmine\Player, null given, called in /home/mcserver1.14/plugins/EssentialsPE/src/EssentialsPE/BaseFiles/BaseAPI.php on line 1840
    File: plugins/EssentialsPE/src/EssentialsPE/BaseFiles/BaseAPI
    Line: 1636
    Type: TypeError
    
    THIS CRASH WAS CAUSED BY A PLUGIN
    BAD PLUGIN: EssentialsPE v2.1.0
    
    Code:
    [1627]             }
    [1628]         }
    [1629]     }
    [1630]
    [1631]     /**
    [1632]      * @param Player $player
    [1633]      *
    [1634]      * @return BaseSession
    [1635]      */
    [1636]     private function getSession(Player $player): BaseSession{
    [1637]         if(!$this->sessionExists($player)){
    [1638]             $this->createSession($player);
    [1639]         }
    [1640]         return $this->sessions[spl_object_hash($player)];
    [1641]     }
    [1642]
    [1643]     /**  _______ _
    [1644]      *  |__   __(_)
    [1645]      *     | |   _ _ __ ___   ___
    [1646]      *     | |  | | '_ ` _ \ / _ \
    
    Backtrace:
    #0 plugins/EssentialsPE/src/EssentialsPE/BaseFiles/BaseAPI(1840): EssentialsPE\BaseFiles\BaseAPI->getSession(NULL )
    #1 plugins/EssentialsPE/src/EssentialsPE/Tasks/TPRequestTask(31): EssentialsPE\BaseFiles\BaseAPI->removeTPRequest(object pocketmine\Player)
    #2 src/pocketmine/scheduler/TaskHandler(134): EssentialsPE\Tasks\TPRequestTask->onRun(integer 757291)
    #3 src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 757291)
    #4 src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 757291)
    #5 src/pocketmine/Server(2391): pocketmine\plugin\PluginManager->tickSchedulers(integer 757291)
    #6 src/pocketmine/Server(2154): pocketmine\Server->tick()
    #7 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
    #8 src/pocketmine/Server(1588): pocketmine\Server->start()
    #9 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[19] /home/mcserver1.14/, string[27] /home/mcserver1.14/plugins/)
    #10 src/pocketmine/PocketMine(304): pocketmine\server()
    
    BaseAPI line: 1636
    PHP:
        private function getSession(Player $player): BaseSession{
            if(!
    $this->sessionExists($player)){
                
    $this->createSession($player);
            }
            return 
    $this->sessions[spl_object_hash($player)];
        }
    BaseAPI line: 1840
    PHP:
    $this->getSession($target)->removeRequestFrom($requester->getName());
    how to fix?
     
  2. UnEnanoMas

    UnEnanoMas Spider Jockey

    Messages:
    36
    GitHub:
    UnEnanoMas
    I recommend that you stop using it, it needs a very large update to be fixed in the new version.

    Install the plugins like / home and / warp from other plugins and just delete that
     
  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.