menu
#9648716 Undefined variable $plugin

Submitted by PocketMine-MP 5.8.2

General information

Version: 5.8.2
Git commit: c3c81b09
Plugin involvement: Direct
Report date: 2023-11-21 00:34:05 +0000 UTC
Server uptime: 0 days 0 hours 1 minutes 27 seconds

System Information

PHP version: 8.1.25
JIT status: Not available
Operating system: linux
System banner: Linux 4eac9506-9e8a-4561-87b9-16f0e1c4ec25 5.15.0-88-generic #98-Ubuntu SMP Mon Oct 2 15:18:56 UTC 2023 x86_64

Error information

Warning: the DarkRankup plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Undefined variable $plugin
File: plugins/DarkRankup/src/score/manager/systems/SellFishUI
Line: #24
Type: ErrorException
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

private $priceFishs = [
"salmon" => "1000",
"clown_fish" => "2000",
"cod" => "2500",
"pufferfish" => "3200"
];

public function __construct(Player $player){
$this->plugin = $plugin;
$form = new SimpleForm(function (Player $player, $data) {
if ($data === null) {
return;
}

switch($data){
case 0:
$this->sellFish($player->getName());
break;
}
#0 plugins/DarkRankup/src/score/manager/systems/SellFishUI(24): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[26] Undefined variable $plugin, string[75] /home/container/plugins/DarkRankup/src/score/manager/systems/SellFishUI.php, int 24)
#1 plugins/DarkRankup/src/score/event/NpcsEvent(33): score\manager\systems\SellFishUI->__construct(object pocketmine\player\Player#306730)
#2 pmsrc/src/event/RegisteredListener(61): score\event\NpcsEvent->onH(object pocketmine\event\entity\EntityDamageByEntityEvent#225376)
#3 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\entity\EntityDamageByEntityEvent#225376)
#4 pmsrc/src/entity/Entity(530): pocketmine\event\Event->call()
#5 pmsrc/src/entity/Living(548): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageByEntityEvent#225376)
#6 pmsrc/src/player/Player(1869): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageByEntityEvent#225376)
#7 pmsrc/src/network/mcpe/handler/InGamePacketHandler(558): pocketmine\player\Player->attackEntity(object slapper\entities\SlapperHuman#300098)
#8 pmsrc/src/network/mcpe/handler/InGamePacketHandler(345): pocketmine\network\mcpe\handler\InGamePacketHandler->handleUseItemOnEntityTransaction(object pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData#226543)
#9 pmsrc/vendor/pocketmine/bedrock-protocol/src/InventoryTransactionPacket(94): pocketmine\network\mcpe\handler\InGamePacketHandler->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#230878)
#10 pmsrc/src/network/mcpe/NetworkSession(445): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#231623)
#11 pmsrc/src/network/mcpe/NetworkSession(383): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#230878, string[32] ........*.|Cr=.B.L}C............)
#12 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[32] c.a.b.b.9.f..F..-..."..Ng}j.....)
#13 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[41] .B*..&..x;Z?u...R....[.z.AT.&DU....A.1x..)
#14 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#307332)
#15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#16 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\snooze\SleeperHandler->processNotifications()
#17 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#18 pmsrc/src/Server(1683): pocketmine\snooze\SleeperHandler->sleepUntil(float 1700526845.122)
#19 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#20 pmsrc/src/PocketMine(341): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#3, object pocketmine\utils\MainLogger#6, string[16] /home/container/, string[24] /home/container/plugins/)
#21 pmsrc/src/PocketMine(364): pocketmine\server()
#22 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show