menu
#4583255 Undefined variable: message

Submitted by PocketMine-MP 3.15.1

General information

Version: 3.15.1
Git commit: 9f604842
Plugin involvement: Direct
Report date: 2020-10-17 22:45:58 +0000 UTC

System Information

PHP version: 7.3.23
Operating system: linux
System banner: Linux ns556347 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64

Error information

Warning: the NexusPrison plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined variable: message
File: plugins/NexusPrison.phar/src/core/game/combat/CombatListener
Line: #165
Error level: ErrorException
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
                $message = Translation::getMessage("deathByPlayer", [
"name" => TextFormat::GREEN . $player->getName() . TextFormat::DARK_GRAY . "[" . TextFormat::DARK_RED . TextFormat::BOLD . $player->getDataSession()->getKills() . TextFormat::RESET . TextFormat::DARK_GRAY . "]",
"killer" => TextFormat::RED . $killer->getName() . TextFormat::DARK_GRAY . "[" . TextFormat::DARK_RED . TextFormat::BOLD . $killer->getDataSession()->getKills() . TextFormat::RESET . TextFormat::DARK_GRAY . "]"
]);
$killer->sendMessage($message);
}
}
$player->combatTag(false);
$event->setDeathMessage(null);
$this->core->getServer()->getAsyncPool()->submitTaskToWorker(new KillLogTask("[Prison]" . date("[n/j/Y][G:i:s]", time()) . TextFormat::clean($message)), 1);
}

/**
* @priority NORMAL
* @param PlayerMoveEvent $event
*
* @throws TranslationException
*/
public function onPlayerMove(PlayerMoveEvent $event): void {
$to = $event->getTo();
#0 plugins/NexusPrison.phar/src/core/game/combat/CombatListener(165): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[27] Undefined variable: message, string[92] phar:///home/servers/prison/plugins/NexusPrison.phar/src/core/game/combat/Combat, integer 165, array[3])
#1 src/pocketmine/plugin/MethodEventExecutor(42): core\game\combat\CombatListener->onPlayerDeath(object pocketmine\event\player\PlayerDeathEvent)
#2 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object core\game\combat\CombatListener, object pocketmine\event\player\PlayerDeathEvent)
#3 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerDeathEvent)
#4 src/pocketmine/Player(3787): pocketmine\event\Event->call()
#5 src/pocketmine/entity/Living(605): pocketmine\Player->onDeath()
#6 src/pocketmine/Player(3776): pocketmine\entity\Living->kill()
#7 src/pocketmine/entity/Entity(983): pocketmine\Player->kill()
#8 src/pocketmine/entity/Living(145): pocketmine\entity\Entity->setHealth(double -2)
#9 plugins/NexusPrison.phar/src/core/game/combat/guards/BaseGuard(180): pocketmine\entity\Living->setHealth(double -2)
#10 plugins/NexusPrison.phar/src/core/game/combat/guards/BaseGuard(83): core\game\combat\guards\BaseGuard->attackTarget()
#11 plugins/NexusPrison.phar/src/core/game/combat/guards/types/Enforcer(47): core\game\combat\guards\BaseGuard->entityBaseTick(integer 1)
#12 src/pocketmine/entity/Entity(1394): core\game\combat\guards\types\Enforcer->entityBaseTick(integer 1)
#13 src/pocketmine/level/Level(852): pocketmine\entity\Entity->onUpdate(integer 4021)
#14 src/pocketmine/level/Level(785): pocketmine\level\Level->actuallyDoTick(integer 4021)
#15 src/pocketmine/Server(2267): pocketmine\level\Level->doTick(integer 4021)
#16 src/pocketmine/Server(2398): pocketmine\Server->checkTickUpdates(integer 4021, double 1602974758.8804)
#17 src/pocketmine/Server(2154): pocketmine\Server->tick()
#18 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#19 src/pocketmine/Server(1588): pocketmine\Server->start()
#20 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[21] /home/servers/prison/, string[29] /home/servers/prison/plugins/)
#21 src/pocketmine/PocketMine(304): pocketmine\server()
#22 (11): require(string[76] phar:///home/servers/prison/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies