Why won't this work? It's suppose to sense my name but it won't work! PHP: $player = $data['player']; $username = $player->username; $vip ="Legomite"; if ($username == $vip) { } else { $player = $data['player']; $username = $player->username; $msg4 = $data['message']; $this -> api -> chat -> broadcast("<$username> “ $msg4 ” "); return false;
Also, if you use $player->sendChat($message, $author); it will come out equal to $player->sendChat("<$author> $message");