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

whhats it problem

Discussion in 'Development' started by Doxestic, Apr 4, 2020.

  1. Doxestic

    Doxestic Spider Jockey

    Messages:
    41
    its the crash:
    Packet pocketmine\network\mcpe\protocol\BatchPacket: /njak/Rl0c9ILGaI8J8yJWvKD3OrmQ4/7O/H72JgAAB7NwoU
    2020-04-04 [22:14:17] [Server thread/CRITICAL]: ErrorException: "Use of undefined constant has - assumed 'has' (this will throw an Error in a future version of PHP)" (EXCEPTION) in "plugins/hide and seek/src/hide/main" at line 42
    2020-04-04 [22:14:17] [Server thread/DEBUG]: #0 plugins/hide and seek/src/hide/main(42): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[99] Use of undefined constant has - assumed 'has' (this will throw an Error in a fut, string[101] D:\developing and server\pocketmine - mp\PocketMine-MP-stable\plugins\hide and s, integer 42, array[4])
    2020-04-04 [22:14:17] [Server thread/DEBUG]: #1 src/pocketmine/command/PluginCommand(58): hide\main->oncommand(object pocketmine\Player, object pocketmine\command\PluginCommand, string[3] has, array[0])
    2020-04-04 [22:14:17] [Server thread/DEBUG]: #2 src/pocketmine/command/SimpleCommandMap(270): pocketmine\command\PluginCommand->execute(object pocketmine\Player, string[3] has, array[0])
    2020-04-04 [22:14:17] [Server thread/DEBUG]: #3 src/pocketmine/Server(2026): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\Player, string[3] has)
    2020-04-04 [22:14:17] [Server thread/DEBUG]: #4 src/pocketmine/Player(2257): pocketmine\Server->dispatchCommand(object pocketmine\Player, string[3] has)
    2020-04-04 [22:14:17] [Server thread/DEBUG]: #5 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(245): pocketmine\Player->chat(string[4] /has)
    2020-04-04 [22:14:17] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket)
    2020-04-04 [22:14:17] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(111): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)

    and its plugins code:
    Code:
     public function oncommand(CommandSender $sender, Command $command, string $label, array $args) : bool{
             switch($command->getname()){
                 case "has":
                    $this->$sender->getname()->sendmessage("§a§lTeleporting...");
                    $chanse = rand(10, 13);
                    switch($chanse){
                      case 10:
     
  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
     
  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.