mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Update PocketMinecraftServer.php
This commit is contained in:
parent
c278ee633d
commit
2e6ea78680
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue