Code: Server thread/CRITICAL InvalidStateException: "Trying to get permissions of closed player" (EXCEPTION) in "src/pocketmine/Player" at line 678 I am having an issue with hasPermission() and I don't get what closed players are. If anyone can give me further information, it would be much appreciated. PHP: $target = $this->getServer()->getPlayerExact($this->targettPlayer); if(!$target->hasPermission("warn.1") && !$target->hasPermission("warn.2") && !$target->hasPermission("warn.3")){ $this->getServer()->dispatchCommand(new ConsoleCommandSender(), "setuperm ".$target->getName()." warn.1"); $this->getServer()->dispatchCommand(new ConsoleCommandSender(), "rca ".$player->getName()." kick ".$target->getName(). " \"§aSpamming - Warning 1\""); } $this->targettPlayer = $data from another form