menu
#4873690 Argument 1 passed to JackMD\KDR\provider\YamlProvider::getPlayerKillPoints() must be an instance of pocketmine\Player, string given

Submitted by PocketMine-MP 3.18.1

General information

Version: 3.18.1
Git commit: fd4ac885
Plugin involvement: Direct
Report date: 2021-04-07 20:31:14 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 26 seconds

System Information

PHP version: 7.4.16
Operating system: linux
System banner: Linux bfcbbf97-0160-4cbe-8db8-37bd618a08fd 5.8.0-43-generic #49-Ubuntu SMP Fri Feb 5 03:01:28 UTC 2021 x86_64

Error information

Warning: the KDR plugin was directly involved in this crash. Please contact the plugin author.
Message: Argument 1 passed to JackMD\KDR\provider\YamlProvider::getPlayerKillPoints() must be an instance of pocketmine\Player, string given
File: plugins/KDR.phar/src/JackMD/KDR/provider/YamlProvider
Line: #117
Error level: TypeError
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
			}
}
return "0.0";
}

/**
* @param Player $player
* @return int
*/
public function getPlayerKillPoints(Player $player): int{
$config = new Config(KDR::getInstance()->getDataFolder() . "data/" . $player->getLowerCaseName() . ".yml", Config::YAML);
return (int) $config->get("kills");
}

public function close(): void{
//useless in this case...
}
}

#0 plugins/CosmoCraftUHC/src/UHC/commands/UHCMainCommand(142): JackMD\KDR\provider\YamlProvider->getPlayerKillPoints(string[11] Goodbritt14)
#1 pmsrc/src/pocketmine/command/SimpleCommandMap(248): UHC\commands\UHCMainCommand->execute(object pocketmine\command\ConsoleCommandSender, string[3] uhc, array[1])
#2 pmsrc/src/pocketmine/Server(1809): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[10] uhc winner)
#3 pmsrc/src/pocketmine/Server(1422): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[10] uhc winner)
#4 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\Server->pocketmine\{closure}()
#5 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
#6 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1617827474.8217)
#7 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#8 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#9 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#10 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#11 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show