menu
#4530625 Undefined offset: 15

Submitted by PocketMine-MP 3.15.1

General information

Version: 3.15.1
Git commit: 9f604842
Plugin involvement: Direct
Report date: 2020-09-15 22:22:24 +0000 UTC

System Information

PHP version: 7.3.19
Operating system: linux
System banner: Linux pacman-network 5.4.0-1022-gcp #22~18.04.1-Ubuntu SMP Fri Aug 14 11:46:21 UTC 2020 x86_64

Error information

Warning: the CoreProcess plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined offset: 15
File: plugins/CoreProcess.v1 by TG (9).phar/src/Core/Core
Line: #198
Error level: ErrorException
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
           }




public function getCounter(string $host,int $port = 19132) : string {
$queryServer = $this->sendQuery($host, $port);
$status = $queryServer === null ? 'offline' : 'online';
if($status == "online"){
return "§a".$queryServer[15];
}else{
return "§c0";
}
}

public function getOnlineTag(string $host,int $port = 19132) : int {
$queryServer = $this->sendQuery($host, $port);
$status = $queryServer === null ? 'offline' : 'online';
if($status == "online"){
return $queryServer[15] ?? 0;
#0 plugins/CoreProcess.v1 by TG (9).phar/src/Core/Core(198): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[20] Undefined offset: 15, string[94] phar:///home/PacManNetPL/Servers/Lobby/plugins/CoreProcess.v1 by TG (9).phar/src, integer 198, array[4])
#1 plugins/CoreProcess.v1 by TG (9).phar/src/Core/entities/NPCBattle(96): Core\Core->getCounter(string[13] pacmanlife.cf, integer 25696)
#2 src/pocketmine/entity/Entity(1394): Core\entities\NPCBattle->entityBaseTick(integer 1)
#3 src/pocketmine/level/Level(852): pocketmine\entity\Entity->onUpdate(integer 2232954)
#4 src/pocketmine/level/Level(785): pocketmine\level\Level->actuallyDoTick(integer 2232954)
#5 src/pocketmine/Server(2267): pocketmine\level\Level->doTick(integer 2232954)
#6 src/pocketmine/Server(2398): pocketmine\Server->checkTickUpdates(integer 2232954, double 1600208542.8566)
#7 src/pocketmine/Server(2154): pocketmine\Server->tick()
#8 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#9 src/pocketmine/Server(1588): pocketmine\Server->start()
#10 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[32] /home/PacManNetPL/Servers/Lobby/, string[40] /home/PacManNetPL/Servers/Lobby/plugins/)
#11 src/pocketmine/PocketMine(304): pocketmine\server()
#12 (11): require(string[87] phar:///home/PacManNetPL/Servers/Lobby/PocketMine-MP.phar/src/pocketmine/PocketM)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies