menu
#4219077 Undefined offset: 2

Submitted by PocketMine-MP 3.12.1

General information

Version: 3.12.1
Git commit: ded45bdd
Plugin involvement: Direct
Report date: 2020-05-22 22:37:24 +0000 UTC

System Information

PHP version: 7.3.15
Operating system: linux
System banner: Linux 3c76f2a9-fae4-4120-8aa2-d5ba434c3f59 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64

Error information

Warning: the PlayerSelectors plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined offset: 2
File: plugins/PlayerSelectors (1).phar/src/Ad5001/PlayerSelectors/Main
Line: #88
Error level: ErrorException
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
        $commandsToExecute = [$m];
foreach($matches[0] as $index => $match){
if(isset(self::$selectors[$matches[1][$index]])){ // Does the selector exist?
// Search for the parameters
$params = self::$selectors[$matches[1][$index]]->acceptsModifiers() ? $this->checkArgParams($matches, $index): [];
// Applying the selector
$newCommandsToExecute = [];
foreach($commandsToExecute as $indexB => $cmd){
// Foreaching the returning commands to push them to the new commands to be executed at the next run.
foreach(self::$selectors[$matches[1][$indexB]]->applySelector($sender, $params) as $selectorStr){
if(strpos($selectorStr, " ") !== -1) $selectorStr = explode(" ", $selectorStr)[count(explode(" ", $selectorStr)) - 1]; // Name w/ spaces. Match the nearest name in the player. Not perfect :/
$newCommandsToExecute[] = substr_replace($cmd, " " . $selectorStr . " ", strpos($cmd, $match), strlen($match));
}
if(count($newCommandsToExecute) == 0) {
$sender->sendMessage("§cYour selector $match (" . self::$selectors[$matches[1][$indexB]]->getName() . ") did not match any player/entity.");
return true;
}
}
$commandsToExecute = $newCommandsToExecute;
}
#0 plugins/PlayerSelectors (1).phar/src/Ad5001/PlayerSelectors/Main(88): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[19] Undefined offset: 2, string[91] phar:///home/container/plugins/PlayerSelectors (1).phar/src/Ad5001/PlayerSelecto, integer 88, array[11])
#1 plugins/PlayerSelectors (1).phar/src/Ad5001/PlayerSelectors/Main(67): Ad5001\PlayerSelectors\Main->execSelectors(string[43] rca @a msg @a Zwuiix et trop bg tu savais ?, object pocketmine\command\ConsoleCommandSender)
#2 src/pocketmine/plugin/MethodEventExecutor(42): Ad5001\PlayerSelectors\Main->onServerCommand(object pocketmine\event\server\ServerCommandEvent)
#3 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object Ad5001\PlayerSelectors\Main, object pocketmine\event\server\ServerCommandEvent)
#4 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\server\ServerCommandEvent)
#5 src/pocketmine/Server(1417): pocketmine\event\Event->call()
#6 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\Server->pocketmine\{closure}()
#7 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#8 src/pocketmine/Server(2146): pocketmine\snooze\SleeperHandler->sleepUntil(double 1590187044.6492)
#9 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
#10 src/pocketmine/Server(1584): pocketmine\Server->start()
#11 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#12 src/pocketmine/PocketMine(295): pocketmine\server()
#13 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show