mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Unnecessary arguments in the if expression
This commit is contained in:
parent
f9f4e65571
commit
4630481d54
9 changed files with 13 additions and 13 deletions
|
|
@ -4,7 +4,7 @@ class StopMessageThread extends Thread
|
|||
{
|
||||
private $page, $msg;
|
||||
public function __construct(PocketMinecraftServer $server, $msg){
|
||||
if($server->extraprops->get("discord-msg") == true and ($this->page = $server->extraprops->get("discord-webhook-url")) !== "none"){
|
||||
if($server->extraprops->get("discord-msg") and ($this->page = $server->extraprops->get("discord-webhook-url")) !== "none"){
|
||||
$this->msg = $server->extraprops->get("discord-ru-smiles") ? str_replace("@", " ", str_replace("Ы", "<:ru_cool:960113011383738369>", str_replace("Ь", "<:ru_cry:960112920346390548>", str_replace("Ъ", "<:ru_happy:960112868601237504>", $msg)))) : str_replace("@", "", $msg);
|
||||
$this->name = $server->extraprops->get("discord-bot-name");
|
||||
$this->start();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue