menu
#3769262 Argument 5 passed to PrimeGames\Slammer\plot\Plot::__construct() must be of the type bool, array given

Submitted by PocketMine-MP 3.11.3

General information

Version: 3.11.3
Git commit: 0d5704b1
Plugin involvement: Direct
Report date: 2020-02-14 12:24:36 +0000 UTC

System Information

PHP version: 7.3.3
Operating system: mac
System banner: Darwin MacBook-Pro 18.7.0 Darwin Kernel Version 18.7.0: Thu Jan 23 06:52:12 PST 2020; root:xnu-4903.278.25~1/RELEASE_X86_64 x86_64

Error information

Warning: the Slammer plugin was directly involved in this crash. Please contact the plugin author.
Message: Argument 5 passed to PrimeGames\Slammer\plot\Plot::__construct() must be of the type bool, array given
File: plugins/Prison.phar/src/PrimeGames/Slammer/plot/Plot
Line: #66
Error level: TypeError
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
     * @param string       $name
* @param UUID $ownerUUID
* @param string $ownerName
* @param PlotHelper[] $helpers
* @param UUID[] $voters
* @param Level $level
* @param Vector3 $firstPosition
* @param Vector3 $secondPosition
*/
public function __construct(int $id, string $name, UUID $ownerUUID, string $ownerName, bool $public, array $helpers, array $voters, Level $level, Vector3 $firstPosition, Vector3 $secondPosition){
$this->id = $id;
$this->name = $name;
$this->ownerUUID = $ownerUUID;
$this->ownerName = $ownerName;
$this->isPublic = $public;

foreach($helpers as $helper){
$helper->setPlot($this);
$this->helpers[$helper->getUuid()->toBinary()] = $helper;
}
#0 plugins/Prison.phar/src/PrimeGames/Slammer/plot/provider/SQLitePlotProvider(273): PrimeGames\Slammer\plot\Plot->__construct(integer 1, string[10] My Plot #1, object pocketmine\utils\UUID, string[13] JackNoordhuis, array[0], array[0], object pocketmine\level\Level, object pocketmine\math\Vector3, object pocketmine\math\Vector3)
#1 plugins/Prison.phar/src/PrimeGames/Slammer/plot/provider/SQLitePlotProvider(247): PrimeGames\Slammer\plot\provider\SQLitePlotProvider->fromArray(array[10], array[0], array[0])
#2 plugins/Prison.phar/src/PrimeGames/Slammer/plot/PlotManager(103): PrimeGames\Slammer\plot\provider\SQLitePlotProvider->loadPlot(integer 1)
#3 plugins/Prison.phar/src/PrimeGames/Slammer/plot/PlotManager(89): PrimeGames\Slammer\plot\PlotManager->loadPlot(integer 1)
#4 plugins/Prison.phar/src/PrimeGames/Slammer/plot/PlotLoadListener(34): PrimeGames\Slammer\plot\PlotManager->loadPlots(object PrimeGames\Slammer\plot\holder\PlayerMemoryPlotHolder)
#5 src/pocketmine/plugin/MethodEventExecutor(38): PrimeGames\Slammer\plot\PlotLoadListener->onPrisonlayerLoaded(object PrimeGames\Slammer\event\player\PrisonPlayerLoadedEvent)
#6 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(object PrimeGames\Slammer\plot\PlotLoadListener, object PrimeGames\Slammer\event\player\PrisonPlayerLoadedEvent)
#7 src/pocketmine/event/Event(95): pocketmine\plugin\RegisteredListener->callEvent(object PrimeGames\Slammer\event\player\PrisonPlayerLoadedEvent)
#8 plugins/Prison.phar/src/PrimeGames/Slammer/provider/task/player/PrisonLoadPlayerTask(100): pocketmine\event\Event->call()
#9 plugins/Primer.phar/src/PrimeGames/provider/MySQLFetchQueryTask(32): PrimeGames\Slammer\provider\task\player\PrisonLoadPlayerTask->handleResult(array[1])
#10 plugins/Primer.phar/src/PrimeGames/provider/MySQLTask(115): PrimeGames\provider\MySQLFetchQueryTask->onCompletion(object pocketmine\Server)
#11 plugins/Primer.phar/src/PrimeGames/provider/MySQLProvider(33): PrimeGames\provider\MySQLTask->processResult()
#12 (): PrimeGames\provider\MySQLProvider->PrimeGames\provider\{closure}(object PrimeGames\Slammer\provider\task\player\PrisonLoadPlayerTask)
#13 plugins/Primer.phar/src/PrimeGames/provider/MySQLProvider(36): Worker->collect(object Closure)
#14 plugins/Primer.phar/src/PrimeGames/provider/MySQLProvider(44): PrimeGames\provider\MySQLProvider->collectTasks()
#15 plugins/Primer.phar/src/PrimeGames/Core(164): PrimeGames\provider\MySQLProvider->heartbeat()
#16 src/pocketmine/scheduler/ClosureTask(57): PrimeGames\Core->PrimeGames\{closure}(integer 130)
#17 src/pocketmine/scheduler/TaskHandler(159): pocketmine\scheduler\ClosureTask->onRun(integer 130)
#18 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 130)
#19 src/pocketmine/plugin/PluginManager(682): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 130)
#20 src/pocketmine/Server(2570): pocketmine\plugin\PluginManager->tickSchedulers(integer 130)
#21 src/pocketmine/Server(2346): pocketmine\Server->tick()
#22 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
#23 src/pocketmine/Server(1785): pocketmine\Server->start()
#24 src/pocketmine/PocketMine(268): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[38] /Users/jack/Development/php/PG/server/, string[46] /Users/jack/Development/php/PG/server/plugins/)
#25 src/pocketmine/PocketMine(291): pocketmine\server()
#26 (1): require(string[93] phar:///Users/jack/Development/php/PG/server/PocketMine-MP.phar/src/pocketmine/P)

Loaded Plugins

  • Show

Server Settings

  • Show