Hello Guys, im back, sorry for the problem, but i really need the help, i got a problem on the server and its very urgent, i already established the data saving and everything, but, there is a little problem, that when i execute the command, i get on to the top of the world and fall unto the dead or if i get into the other team, i go out the world, so please help, thanks. I have tried to study PHP, and i think the problem is in the arrays, thanks for the help. There are no problems or crashes on the console. This is proof of the problem Code: PHP: case 'joinpblobby': $lobbycor = $this->getConfig()->get("pblobby"); $lobbyj = new Vector3($lobbycor[0], $lobbycor[1], $lobbycor[2]); $sender->teleport($lobbyj); break; case 'setpbspawn1': $sspawn = [ $sender->getX(), $sender->getZ(), $sender->getY() ]; $this->getConfig()->set("pspawn", $sspawn)[0]; $this->getConfig()->get("pspawn"); $this->getConfig()->save(); $sender->sendMessage(Color::GREEN."[Paintball] Team 1 spawn set!"); break; case 'setpbspawn2': $sspawn2 = [ $sender->getX(), $sender->getY(), $sender->getZ() ]; $this->getConfig()->set("pswpawn2", $sspawn2)[0]; $this->getConfig()->get("pspawn2", $sspawn2); $this->getConfig()->save(); $sender->sendMessage(Color::GREEN."[Paintball] Team 2 spawn set!"); break; case 'joinpb': $random = mt_rand(1, 2); $name = $sender->getPlayer()->getName(); $coords = $this->getConfig()->get("pspawn"); $coords2 = $this->getConfig()->get("pspawn2"); $pos = new Vector3($coords[0], $coords[1], $coords[2]); $pos2 = new Vector3($coords2[0], $coords2[1], $coords2[2]); YAML FILE: PHP: ## YAML Template.---pblobby: 0pspawn: 0pspawn2: 0
I think your config should be something like Code: ## YAML Template. --- pblobby: 0,0,0 pspawn: 0,0,0 pspawn2: 0,0,0 Then replace all those $this->getConfig()->get("pblobby") like below replace Code: $lobbycor = $this->getConfig()->get("pblobby"); with Code: $lobbycor = explode(",",$this->getConfig()->get("pblobby"));