diff --git a/src/Server.php b/src/Server.php index c9f57410c..f0ba676bd 100644 --- a/src/Server.php +++ b/src/Server.php @@ -634,27 +634,6 @@ class Server{ return null; } - /** - * Returns a list of online players whose names contain with the given string (case insensitive). - * If an exact match is found, only that match is returned. - * - * @return Player[] - */ - public function matchPlayer(string $partialName) : array{ - $partialName = strtolower($partialName); - $matchedPlayers = []; - foreach($this->getOnlinePlayers() as $player){ - if(strtolower($player->getName()) === $partialName){ - $matchedPlayers = [$player]; - break; - }elseif(stripos($player->getName(), $partialName) !== false){ - $matchedPlayers[] = $player; - } - } - - return $matchedPlayers; - } - /** * Returns the player online with the specified raw UUID, or null if not found */