Closed smlrrlms closed 7 years ago
Closing. You haven't provided what $val["id"] is. I am guessing it is an integer (Player::getId()). It is supposed be the player's name (string).
...
$this->players=array();
...
$this->players[$event->getPlayer()->getName()]=array("id"=>$event->getPlayer()->getName());
...
if($this->gameStatus==0)
{
$i=0;
foreach($this->players as $key=>$val)
{
$i++;
$p=$this->getServer()->getPlayer($val["id"]);
//echo($i."\n");
$this->getServer()->loadLevel($this->config->get("pos1")["level"]);
$p->setLevel($this->getServer()->getLevelByName($this->config->get("pos1")["level"]));
eval("\$p->teleport(\$this->pos".$i.");");
unset($p);
}
}
Main.php of this plugin - http://pastebin.com/VCr4VqCA PluginCallbackTask.php - http://pastebin.com/zGc0XP8w
You're seriously using eval()? wtf :facepalm:
Its very old plugin and not my. On previous API its work and it suited me ...
In that case, contact the author requesting him to update the plugin.
The author has long ceased its development. better tell me what error occurs or where to look.
This occurs when the player clicks on a plate.
This isn't a support forum. Better not use the plugin if the author has abandoned it.
Issue description
Server down after executing this part of code...
Steps to reproduce the issue
Execute this code
OS and versions
Crashdump, backtrace, memory dumps, plugins list or other files