@everyone, @here and all @ fix(port of johnymuffin's one)

This commit is contained in:
GameHerobrine 2022-05-08 22:47:33 +03:00
parent 68e1deb830
commit 62861837b6

View file

@ -716,7 +716,7 @@ class PocketMinecraftServer{
$url = $this->extraprops->get("discord-webhook-url");
$name = $this->extraprops->get("discord-bot-name");
$headers = [ 'Content-Type: application/json; charset=utf-8' ];
$POST = [ 'username' => $name, 'content' => $msg];
$POST = [ 'username' => $name, 'content' => str_replace("@"," ",$msg)];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, true);