Update PocketMinecraftServer.php

This commit is contained in:
kotyara 2022-05-09 01:55:04 +05:00 • committed by GitHub
parent c278ee633d
commit 2e6ea78680
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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' => 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);