diff --git a/src/PocketMinecraftServer.php b/src/PocketMinecraftServer.php index 1d182b22..606276df 100644 --- a/src/PocketMinecraftServer.php +++ b/src/PocketMinecraftServer.php @@ -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' => str_replace("@"," ",$msg)]; + $POST = [ 'username' => $name, 'content' => str_replace("@", "", $msg)]; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true);