From 62861837b6bb63b3e61509f1f9cbfdee2fb8eee1 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Sun, 8 May 2022 22:47:33 +0300 Subject: [PATCH] @everyone, @here and all @ fix(port of johnymuffin's one) --- src/PocketMinecraftServer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PocketMinecraftServer.php b/src/PocketMinecraftServer.php index 2ddff9fc..1d182b22 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' => $msg]; + $POST = [ 'username' => $name, 'content' => str_replace("@"," ",$msg)]; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true);