menu
#3230392 Undefined class constant 'CONTAINER_SET_SLOT_PACKET'

Submitted by PocketMine-MP 3.9.7

General information

Version: 3.9.7
Git commit: 0c91d568
Plugin involvement: Direct
Report date: 2019-11-30 04:12:09 +0000 UTC

System Information

PHP version: 7.3.11
Operating system: linux
System banner: Linux sd-us1 3.10.0-1062.1.1.el7.x86_64 #1 SMP Fri Sep 13 22:55:44 UTC 2019 x86_64

Error information

Warning: the SilkSpawners plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined class constant 'CONTAINER_SET_SLOT_PACKET'
File: plugins/SilkSpawners_v1_2018-10-08 (2).phar/src/R4KT/SilkListener
Line: #123
Error level: Error
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
				$event->setCancelled(true);
}
}
return false;
}

public function onDataSend(DataPacketSendEvent $event) {
$pk = $event->getPacket();
$player = $event->getPlayer();
if ($pk::NETWORK_ID === ProtocolInfo::CONTAINER_SET_SLOT_PACKET) {
$item = $pk->item;
if ($item->getId() === Item::MONSTER_SPAWNER) {
$entityId = $item->getDamage();
if (($name = SilkSpawners::retrieveName($entityId)) !== null) {
if (!$item->hasCustomName()) {
$slot = $pk->slot;
$item->setCustomName($name);
$player->getInventory()->setItem($slot, $item);
}
}
#0 src/pocketmine/plugin/MethodEventExecutor(38): R4KT\SilkListener->onDataSend(object pocketmine\event\server\DataPacketSendEvent)
#1 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(object R4KT\SilkListener, object pocketmine\event\server\DataPacketSendEvent)
#2 src/pocketmine/event/Event(97): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\server\DataPacketSendEvent)
#3 src/pocketmine/Player(3187): pocketmine\event\Event->call()
#4 src/pocketmine/Player(1963): pocketmine\Player->sendDataPacket(object pocketmine\network\mcpe\protocol\PlayStatusPacket, boolean , boolean )
#5 src/pocketmine/Player(2049): pocketmine\Player->sendPlayStatus(integer 0)
#6 src/pocketmine/Player(2000): pocketmine\Player->processLogin()
#7 src/pocketmine/network/mcpe/VerifyLoginTask(166): pocketmine\Player->onVerifyCompleted(object pocketmine\network\mcpe\protocol\LoginPacket, NULL , boolean 1)
#8 src/pocketmine/scheduler/AsyncPool(320): pocketmine\network\mcpe\VerifyLoginTask->onCompletion(object pocketmine\Server)
#9 src/pocketmine/Server(2574): pocketmine\scheduler\AsyncPool->collectTasks()
#10 src/pocketmine/Server(2346): pocketmine\Server->tick()
#11 src/pocketmine/Server(2206): pocketmine\Server->tickProcessor()
#12 src/pocketmine/Server(1784): pocketmine\Server->start()
#13 src/pocketmine/PocketMine(278): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[45] /home/minecraft/multicraft/servers/server270/, string[53] /home/minecraft/multicraft/servers/server270/plugins/)
#14 src/pocketmine/PocketMine(300): pocketmine\server()
#15 (1): require(string[99] phar:///home/minecraft/multicraft/servers/server270/customphar73.phar/src/pocket)

Loaded Plugins

  • Show

Server Settings

  • Show