From 2e6ea78680892a1f5ea627aba2bf2e69c9d5bf7b Mon Sep 17 00:00:00 2001 From: kotyara <62548070+kotyaralih@users.noreply.github.com> Date: Mon, 9 May 2022 01:55:04 +0500 Subject: [PATCH] Update PocketMinecraftServer.php --- src/PocketMinecraftServer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);