menu
#4873655 Declaration of TheNote\core\server\InventoryTransactionPacketV2::decodePayload() must be compatible with pocketmine\network\mcpe\protocol\InventoryTransactionPacket::decodePayload(): void

Submitted by PocketMine-MP 3.19.0

General information

Version: 3.19.0
Git commit: b307cd0a
Plugin involvement: Direct
Report date: 2021-04-07 19:53:44 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 1 seconds

System Information

PHP version: 7.4.16
Operating system: linux
System banner: Linux baufieber.net 4.15.0-134-generic #138-Ubuntu SMP Fri Jan 15 10:52:18 UTC 2021 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Declaration of TheNote\core\server\InventoryTransactionPacketV2::decodePayload() must be compatible with pocketmine\network\mcpe\protocol\InventoryTransactionPacket::decodePayload(): void
File: plugins/Core-V5-main/src/TheNote/core/server/InventoryTransactionPacketV2
Line: #19
Error level: E_COMPILE_ERROR
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//

namespace TheNote\core\server;

use TheNote\core\inventar\action\CustomInventoryAction;
use pocketmine\network\mcpe\protocol\InventoryTransactionPacket;
use pocketmine\network\mcpe\protocol\types\inventory\InventoryTransactionChangedSlotsHack;

class InventoryTransactionPacketV2 extends InventoryTransactionPacket {
protected function decodePayload(){
$this->requestId = $this->readGenericTypeNetworkId();
$this->requestChangedSlots = [];
if($this->requestId !== 0){
for($i = 0, $len = $this->getUnsignedVarInt(); $i < $len; ++$i){
$this->requestChangedSlots[] = InventoryTransactionChangedSlotsHack::read($this);
}
}

$this->transactionType = $this->getUnsignedVarInt();

Loaded Plugins

  • Show

Server Settings

  • Show