Hey, do anyone know how to make a player doesn't see anything even their hand.. When I use blind effect the player still able to see a small area but I want the player can't see anything even a small area. If anyone know how to make that happen tell me as soon as posible.
Have you tried to put the effect amplifier to like 999 ? And for the player to doesen't see himself, You can do: - If you want that all players can see the target but the target can't see himself: PHP: /* $player is the player with blindness */$player->hidePlayer($player); And if you want to no one even the target to see him, just add invisibility effect to the target
How to make the hide fuction for all player? Is... PHP: $allPlayer = $this->getServer()->getOnlinePlayers();$player->hide($allPlayer);//Is like this?? But getOnlinePlayer() fuction will return to array so how to get all of the online player?
l see the documentation on how to use this function LINK https://www.php.net/manual/en/control-structures.foreach.php
It will hide allplayers and the target to blind too. And it will hide all players, then nobody can see one of them