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

Errors (Pop ups in console)

Discussion in 'Development' started by DiamondGamer30, Oct 7, 2017.

  1. DiamondGamer30

    DiamondGamer30 Baby Zombie

    Messages:
    175
    GitHub:
    diamondgamermcpe
    Can anyone help me with this error right here.

    [07.10 00:28:01 [Server] Server thread/CRITICAL Unhandled exception executing command 'bounty me' in bounty: Return value of Infernus101\Main:: onCommand() must be of the type boolean, none returned
    07.10 00:28:01 [Server] Server thread/CRITICAL TypeError: "Return value of Infernus101\Main:: onCommand() must be of the type boolean, none returned" (EXCEPTION) in "Bounty_v3 (4).phar/src/Infernus101/Main" at line 263
    07.10 00:28:01 [Server] Server thread/DEBUG #0 src/pocketmine/command/PluginCommand(58): Infernus101\Main->onCommand(pocketmine\Player object, pocketmine\command\PluginCommand object, string bounty, array Array())
    07.10 00:28:01 [Server] Server thread/DEBUG #1 src/pocketmine/command/SimpleCommandMap(241): pocketmine\command\PluginCommand->execute(pocketmine\Player object, string bounty, array Array())
    07.10 00:28:01 [Server] Server thread/DEBUG #2 src/pocketmine/Server(1952): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\Player object, string bounty me)
    07.10 00:28:01 [Server] Server thread/DEBUG #3 src/pocketmine/Player(2093): pocketmine\Server->dispatchCommand(pocketmine\Player object, string bounty me)
    07.10 00:28:01 [Server] Server thread/DEBUG #4 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(219): pocketmine\Player->chat(string /bounty me)
    07.10 00:28:01 [Server] Server thread/DEBUG #5 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(47): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
    07.10 00:28:01 [Server] Server thread/DEBUG #6 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(91): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
    07.10 00:28:01 [Server] Server thread/DEBUG #7 src/pocketmine/network/mcpe/protocol/BatchPacket(115): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
    07.10 00:28:01 [Server] Server thread/DEBUG #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(91): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
    07.10 00:28:01 [Server] Server thread/DEBUG #9 src/pocketmine/Player(3083): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
    07.10 00:28:01 [Server] Server thread/DEBUG #10 src/pocketmine/network/mcpe/RakLibInterface(143): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
    07.10 00:28:01 [Server] Server thread/DEBUG #11 src/raklib/server/ServerHandler(97): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string **.**.***.**:59289, raklib\protocol\EncapsulatedPacket object, integer 0)
    07.10 00:28:01 [Server] Server thread/DEBUG #12 src/pocketmine/network/mcpe/RakLibInterface(82): raklib\server\ServerHandler->handlePacket()
    07.10 00:28:01 [Server] Server thread/DEBUG #13 src/pocketmine/network/Network(89): pocketmine\network\mcpe\RakLibInterface->process()
    07.10 00:28:01 [Server] Server thread/DEBUG #14 src/pocketmine/Server(2485): pocketmine\network\Network->processInterfaces()
    07.10 00:28:01 [Server] Server thread/DEBUG #15 src/pocketmine/Server(2238): pocketmine\Server->tick()
    07.10 00:28:01 [Server] Server thread/DEBUG #16 src/pocketmine/Server(2117): pocketmine\Server->tickProcessor()
    07.10 00:28:01 [Server] Server thread/DEBUG #17 src/pocketmine/Server(1699): pocketmine\Server->start()
    07.10 00:28:01 [Server] Server thread/DEBUG #18 src/pocketmine/PocketMine(553): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///pmmp_65_1.2.phar/, string /, string /plugins/)
    07.10 00:28:01 [Server] Server thread/DEBUG #19 /pmmp_65_1.2.phar(1): require(string phar:///pmmp_65_1.2.phar/src/pocketmine/PocketMine.php)
     
  2. themestl

    themestl Spider Jockey

    Messages:
    39
    GitHub:
    themestl
    Add "return true"; this is needed in the onCommand method at the end.
     
  3. Karanpatel567

    Karanpatel567 Baby Zombie

    Messages:
    115
    GitHub:
    Karanpatel567
    Not only return true; you have to add : bool add this at the end of the on Command function
    PHP:
    onCommand(pocketmine\command\CommandSender $senderpocketmine\command\Command $commandstring $label, array $args): bool {
     
  4. themestl

    themestl Spider Jockey

    Messages:
    39
    GitHub:
    themestl
    He had already done it, otherwise he had another error: "... must be compatible with .... "
     
    HimbeersaftLP likes this.
  5. McpeBooster

    McpeBooster Baby Zombie

    Messages:
    190
    GitHub:
    mcpebooster
    Please use Code tags next time
     
    HimbeersaftLP likes this.
  6. DiamondGamer30

    DiamondGamer30 Baby Zombie

    Messages:
    175
    GitHub:
    diamondgamermcpe
    K
     
  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.