menu
#3547781 Undefined offset: 0

Submitted by PocketMine-MP 3.11.3

General information

Version: 3.11.3
Git commit: 0d5704b1
Plugin involvement: Direct
Report date: 2020-01-13 20:36:50 +0000 UTC

System Information

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

Error information

Warning: the LKB-NashanPlays plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined offset: 0
File: plugins/CKB.phar/src/NashanPlays/CKb/CKb
Line: #27
Error level: ErrorException
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
	{
$this->getLogger()->info("CustomKB creado por NashanPlaysYT");
$this->getServer()->getPluginManager()->registerEvents($this ,$this);
$kblv = new Config($this->getDataFolder(). "/kblv.yml", Config::YAML);
$kblv->save();
}
public function onCommand(CommandSender $player, Command $cmd, string $label, array $args) : bool {
switch($cmd->getName()) {
case "kb":
if($args[0] == "help") {
$player->sendMessage("§7====== §bLevelKB §l§9HELP§r §7======\n§6Use: /kb set (kb)\n§6Set it to 0 to set normal KB\n§ePlugin created by NashanPlays\n§9Discord: NashanPlays#3365\n§bTwitter: @NashanPlaysYT");
}
if($args[0] == "set") {
$kblv = new Config($this->getDataFolder(). "/kblv.yml", Config::YAML);
$lv = $player->getLevel()->getFolderName();
$kblv->set($lv,$args[1]);
$kblv->save();
$player->sendMessage("§7(§l§a!§r§7) §aKnockback §6".$args[1]." §aset on world §6".$player->getLevel()->getFolderName());
}
break;
#0 plugins/CKB.phar/src/NashanPlays/CKb/CKb(27): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[19] Undefined offset: 0, string[98] phar://C:/Users/ander/OneDrive/..rea de Trabalho/pmmp/plugins/CKB.phar/src/Nasha, integer 27, array[4])
#1 src/pocketmine/command/PluginCommand(58): NashanPlays\CKb\CKb->onCommand(object pocketmine\command\ConsoleCommandSender, object pocketmine\command\PluginCommand, string[2] kb, array[0])
#2 src/pocketmine/command/SimpleCommandMap(270): pocketmine\command\PluginCommand->execute(object pocketmine\command\ConsoleCommandSender, string[2] kb, array[0])
#3 src/pocketmine/Server(2026): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[2] kb)
#4 src/pocketmine/Server(1617): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[2] kb)
#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(2349): pocketmine\snooze\SleeperHandler->sleepUntil(double 1578947810.5296)
#8 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
#9 src/pocketmine/Server(1785): pocketmine\Server->start()
#10 src/pocketmine/PocketMine(268): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[47] C:\Users\ander\OneDrive\..rea de Trabalho\pmmp\, string[55] C:\Users\ander\OneDrive\..rea de Trabalho\pmmp\plugins\)
#11 src/pocketmine/PocketMine(291): pocketmine\server()
#12 (1): require(string[102] phar://C:/Users/ander/OneDrive/..rea de Trabalho/pmmp/PocketMine-MP.phar/src/poc)

Loaded Plugins

  • Show

Server Settings

  • Show