Player: typo

This commit is contained in:
Sunch 2026-06-06 18:46:17 +08:00
parent cece622118
commit 22401a6378

View file

@ -1379,10 +1379,11 @@ class Player{
} }
public function makeInvisibleForAllPlayers(){ public function makeInvisibleForAllPlayers(){
foreach($this->server->api->player->getA as $player){ foreach($this->server->api->player->getAll() as $player){
if($player->CID != $this->CID) $this->setInvisibleFor($player, true); if($player->CID != $this->CID) $this->setInvisibleFor($player, true);
} }
} }
public function getGamemode(){ public function getGamemode(){
switch($this->gamemode){ switch($this->gamemode){
case SURVIVAL: case SURVIVAL: