Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Server crashed #332

Open
powerful-js opened this issue May 17, 2021 · 1 comment
Open

Server crashed #332

powerful-js opened this issue May 17, 2021 · 1 comment

Comments

@powerful-js
Copy link

Error: Argument 1 passed to pocketmine\utils\BinaryStream::putLFloat() must be of the type float, string given, called in C:\Users\CAN\Desktop\Software\Altay\src\pocketmine\network\mcpe\NetworkBinaryStream.php on line 658
File: pmsrc/vendor/pocketmine/binaryutils/src/BinaryStream
Line: 250
Type: TypeError

@powerful-js
Copy link
Author

public function onCommand(CommandSender $sender, Command $command, string $label, array $args): bool
{
if ($command->getName() == "topkills") {
if ($sender->isOp()) {
$player = $sender;
if ($player instanceof Player) {
$config = new Config($this->getDataFolder() . "Config.yml", Config::YAML);
$position = $player->getX() . ":" . $player->getY() . ":" . $player->getZ() . ":" . $player->getLevel()->getName();
$player->sendMessage(self::PREFIX . "§aÖldürme tablosu başarıyla oluşturuldu!");
$config->set("Position", $position);
$config->save();
$this->setTextTop();
}
}
}
return true;
}

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

No branches or pull requests

1 participant