Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing SecondSpawnPosX #25

Closed
notacoderr opened this issue Jun 7, 2023 · 1 comment
Closed

Missing SecondSpawnPosX #25

notacoderr opened this issue Jun 7, 2023 · 1 comment

Comments

@notacoderr
Copy link

notacoderr commented Jun 7, 2023

PocketMine-MP Crash Dump Wed Jun 7 07:06:17 UTC 2023

PocketMine-MP version: 5.0.1 [Protocol 582]
Git commit: 2f43ccea6f25014668a7a6d5686304b73b62336a
PHP version: 8.1.19
OS: Linux, linux

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: ProperDuels

Error: Missing required variable secondSpawnPosX
File: plugins/ProperDuels.phar/src/JavierLeon9966/ProperDuels/libs/poggit/libasynql/generic/GenericStatementImpl
Line: 201

//removed error backtrace, i didn't mean to mention other issues, wtf

Code:
[192] public function format(array $vars, ?string $placeHolder, ?array &$outArgs) : array{
[193] $outArgs = [];
[194] $queries = [];
[195]
[196] foreach($this->query as $bufferId => $buffer) {
[197] $outArgs[$bufferId] = [];
[198]
[199] foreach($this->variables as $variable){
[200] if(!$variable->isOptional() && !array_key_exists($variable->getName(), $vars)){
[201] throw new InvalidArgumentException("Missing required variable {$variable->getName()}");
[202] }
[203] }
[204]
[205] $query = "";
[206]
[207] $lastPos = 0;
[208] foreach($this->varPositions[$bufferId] as $pos => $name){
[209] $query .= mb_substr($buffer, $lastPos, $pos - $lastPos);
[210] $value = $vars[$name] ?? $this->variables[$name]->getDefault();
[211] try{

command tried:
/arena create test 954 47 543 954 47 933 testkit

@notacoderr
Copy link
Author

version 2.3.0 for PM 5.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant