PocketMine Crash Archive

#29714118 Invalid argument error by Specter plugin

Submitted by PocketMine-Network 1.5.1-hybrid
Warning! This crash was caused by the Specter plugin. Please contact the original plugin author.

General information

Version: 1.5.1
API version: 1.12.0
Caused by a Plugin: YES
Report date: Sunday 10/11/2019 20:53:12
Attached Issue: None

System Information

PHP version: 7.2.16
Operating system: win
System banner: Windows NT DESKTOP-G8OQ6LT 10.0 build 17763 (Windows 10) AMD64

Error information

Argument 2 passed to specter/network/SpecterInterface::putPacket() must be an instance of pocketmine/network/protocol/DataPacket, string given, called in src/pocketmine/Player.php on line 1110
File: /plugins/Specter_v0.3.phar/src/specter/network/SpecterInterface
Line: #44
Error level: notice

[35]      * Sends a DataPacket to the interface, returns an unique identifier for the packet if $needACK is true
[36]      *
[37]      * @param Player $player
[38]      * @param DataPacket $packet
[39]      * @param bool $needACK
[40]      * @param bool $immediate
[41]      *
[42]      * @return int
[43]      */
[44]     public function putPacket(Player $player, DataPacket $packet, $needACK = false, $immediate = true){
[45]         if($player instanceof SpecterPlayer) {
[46]             if ($packet instanceof TextPacket) {
[47]                 $type = "Unknown";
[48]                 switch($type){
[49]                     case TextPacket::TYPE_CHAT:
[50]                         $type = "Chat"; // warn about deprecation?
[51]                         break;
[52]                     case TextPacket::TYPE_RAW:
[53]                         $type = "Message";
[54]                         break;
#0 /src/pocketmine/Player(2581): pocketmine\Player->directDataPacket(pocketmine\network\protocol\DisconnectPacket object)
#1 /src/pocketmine/Player(1789): pocketmine\Player->close(string , string Sorry, your client is broken.)
#2 /plugins/Specter_v0.3.phar/src/specter/network/SpecterPlayer(27): pocketmine\Player->handleDataPacket(pocketmine\network\protocol\LoginPacket object)
#3 /plugins/Specter_v0.3.phar/src/specter/network/SpecterInterface(134): specter\network\SpecterPlayer->handleDataPacket(pocketmine\network\protocol\LoginPacket object)
#4 /plugins/Specter_v0.3.phar/src/specter/Specter(33): specter\network\SpecterInterface->openSession(string steve, string SPECTER)
#5 /src/pocketmine/command/PluginCommand(56): specter\Specter->onCommand(pocketmine\command\ConsoleCommandSender object, pocketmine\command\PluginCommand specter, string specter, array Array())
#6 /src/pocketmine/command/SimpleCommandMap(244): pocketmine\command\PluginCommand->execute(pocketmine\command\ConsoleCommandSender object, string specter, array Array())
#7 /src/pocketmine/Server(1960): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\command\ConsoleCommandSender object, string specter spawn steve)
#8 /src/pocketmine/Server(1939): pocketmine\Server->dispatchCommand(pocketmine\command\ConsoleCommandSender object, string specter spawn steve)
#9 /src/pocketmine/Server(2442): pocketmine\Server->checkConsole(boolean)
#10 /src/pocketmine/Server(2257): pocketmine\Server->tick(boolean)
#11 /src/pocketmine/Server(2131): pocketmine\Server->tickProcessor(boolean)
#12 /src/pocketmine/Server(1734): pocketmine\Server->start(boolean)
#13 /src/pocketmine/PocketMine(459): pocketmine\Server->__construct(pocketmine\CompatibleClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\yangj\Videos\More stuff\Network XboxLogin\, string C:\Users\yangj\Videos\More stuff\Network XboxLogin\, string C:\Users\yangj\Videos\More stuff\Network XboxLogin\plugins\)

Loaded Plugins

NameVersionStateAuthor(s)
DevTools1.10.0EnabledPocketMine Team
iControlU1.3EnabledFalkirks
Specter0.3EnabledFalkirks
SimpleAuth1.7.1EnabledPocketMine Team, shoghicp
XboxLogin1.0.0Enabled

Server Settings [toggle]

NameValue
motdMinecraft: PE Server
server-port19132
memory-limit256M
white-listoff
spawn-protection16
max-players20
allow-flightoff
spawn-animalson
animals-limit0
spawn-mobson
mobs-limit0
gamemode0
force-gamemodeoff
hardcoreoff
pvpon
difficulty1
generator-settings
level-nameworld
level-seed
level-typeDEFAULT
enable-queryon
enable-rconoff
rcon.password******
auto-saveon
auto-generateoff
save-player-dataoff
time-updateon
use-encryptoff
Find duplicates  |   Download