menu
#3081693 Undefined offset: 0

Submitted by PocketMine-MP 3.9.4

General information

Version: 3.9.4
Git commit: 1be6783c
Plugin involvement: Direct
Report date: 2019-11-08 17:23:05 +0000 UTC

System Information

PHP version: 7.3.11
Operating system: linux
System banner: Linux AtlanticGreek 4.15.0 #1 SMP Thu Feb 21 17:35:43 MSK 2019 x86_64

Error information

Warning: the GeoUHC plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined offset: 0
File: plugins/GeoUHC_dev-5.phar/src/FRISCOWZ/Main
Line: #115
Error level: ErrorException
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
$event->setQuitMessage("");
}
public function onCommand(CommandSender $sender, Command $cmd, $label, array $args) : bool{

$cmd = strtolower($cmd->getName());
$players = $sender->getName();
switch($cmd){
case 'uhc':
if ($sender->isOp()){
switch($args[0]){

case "reset":
foreach($this->getServer()->getOnlinePlayers() as $p){
$p->setMaxHealth(20);
$p->setHealth(20);
$p->setFood(20);
$p->setGamemode(0);
$p->getInventory()->clearAll();
$p->removeAllEffects();
}
#0 plugins/GeoUHC_dev-5.phar/src/FRISCOWZ/Main(115): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[19] Undefined offset: 0, string[74] phar:///root/AtlanticGreek/plugins/GeoUHC_dev-5.phar/src/FRISCOWZ/Main.php, integer 115, array[5])
#1 src/pocketmine/command/PluginCommand(58): FRISCOWZ\Main->onCommand(object pocketmine\command\ConsoleCommandSender, string[3] uhc, string[3] uhc, array[0])
#2 src/pocketmine/command/SimpleCommandMap(270): pocketmine\command\PluginCommand->execute(object pocketmine\command\ConsoleCommandSender, string[3] uhc, array[0])
#3 src/pocketmine/Server(2029): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[3] uhc)
#4 src/pocketmine/Server(1616): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[3] uhc)
#5 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\Server->pocketmine\{closure}()
#6 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#7 src/pocketmine/Server(2348): pocketmine\snooze\SleeperHandler->sleepUntil(double 1573233785.8666)
#8 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
#9 src/pocketmine/Server(1784): pocketmine\Server->start()
#10 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[20] /root/AtlanticGreek/, string[28] /root/AtlanticGreek/plugins/)
#11 src/pocketmine/PocketMine(299): pocketmine\server()
#12 (1): require(string[75] phar:///root/AtlanticGreek/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show