menu
#7557816 Undefined variable $cmd

Submitted by PocketMine-MP 4.8.1

General information

Version: 4.8.1
Git commit: 0a92e91a
Plugin involvement: Direct
Report date: 2022-09-23 05:02:44 +0000 UTC
Server uptime: 0 days 1 hours 11 minutes 15 seconds

System Information

PHP version: 8.0.22
JIT status: Not available
Operating system: linux
System banner: Linux localhost 4.14.193+-ab543 #1 SMP PREEMPT Wed Aug 3 17:12:38 CST 2022 aarch64

Error information

Warning: the BedWarsUltimate plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined variable $cmd
File: plugins/BedWarsUltimate_dev-171.phar/src/BedWars/game/GameListener
Line: #587
Error level: ErrorException
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
    public function onCommandPreprocess(PlayerCommandPreprocessEvent $event) : void{
$player = $event->getPlayer();

$game = $this->plugin->getPlayerGame($player);

if($game == null)return;

$args = explode(" ", $event->getMessage());

if(in_array($cmd, $this->plugin->getConfig()->get("Banned-Commands"))) {
$player->sendMessage(TextFormat::RED . " §l§5» §r§cYou cannot run this in-game!");
$event->cancel();
}
}

public function onDrop(PlayerDropItemEvent $event){
$player = $event->getPlayer();
if(!$player instanceof Player) return;
if(($arena = $this->plugin->getPlayerGame($player)) !== null){
if($arena->getState() == Game::STATE_LOBBY || $arena->getState() == Game::STATE_REBOOT){
#0 plugins/BedWarsUltimate_dev-171.phar/src/BedWars/game/GameListener(587): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[23] Undefined variable $cmd, string[97] phar:///home/pocket/server/plugins/BedWarsUltimate_dev-171.phar/src/BedWars/game, int 587)
#1 pmsrc/src/event/RegisteredListener(60): BedWars\game\GameListener->onCommandPreprocess(object pocketmine\event\player\PlayerCommandPreprocessEvent#143427)
#2 pmsrc/src/event/Event(62): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\player\PlayerCommandPreprocessEvent#143427)
#3 pmsrc/src/player/Player(1402): pocketmine\event\Event->call()
#4 pmsrc/src/network/mcpe/handler/InGamePacketHandler(759): pocketmine\player\Player->chat(string[33] /bw ChimeraBoxier chat /bw random)
#5 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(51): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#125992)
#6 pmsrc/src/network/mcpe/NetworkSession(392): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#31913)
#7 pmsrc/src/network/mcpe/NetworkSession(355): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#125992, string[54] M!/bw ChimeraBoxier chat /bw random..K...S....+Z..d...)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[56] 3.U.O*Wp...M-Jt...L-RH.H,Q...%....2L.>..]0......v.M.....)
#9 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[65] .g....}M...T.....9.....^........[.t....R.....Q.*A.9.....kC.(N.Q..)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#29026)
#11 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#13 pmsrc/src/Server(1703): pocketmine\snooze\SleeperHandler->sleepUntil(float 1663909364.0991)
#14 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#15 pmsrc/src/PocketMine(305): pocketmine\Server->__construct(object BaseClassLoader#3, object pocketmine\utils\MainLogger#2, string[20] /home/pocket/server/, string[28] /home/pocket/server/plugins/)
#16 pmsrc/src/PocketMine(328): pocketmine\server()
#17 pmsrc(11): require(string[64] phar:///home/pocket/server/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show