mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
Added ru-smiles for discord messages
This commit is contained in:
parent
6af9924308
commit
f484c90f7b
1 changed files with 3 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ class PocketMinecraftServer{
|
||||||
}
|
}
|
||||||
console("[INFO] Loading extra.properties...");
|
console("[INFO] Loading extra.properties...");
|
||||||
$this->extraprops = new Config(DATA_PATH . "extra.properties", CONFIG_PROPERTIES, array(
|
$this->extraprops = new Config(DATA_PATH . "extra.properties", CONFIG_PROPERTIES, array(
|
||||||
"version" => "4",
|
"version" => "5",
|
||||||
"enable-nether-reactor" => true,
|
"enable-nether-reactor" => true,
|
||||||
"enable-explosions" => true,
|
"enable-explosions" => true,
|
||||||
"enable-rail-connection" => false,
|
"enable-rail-connection" => false,
|
||||||
|
|
@ -81,6 +81,7 @@ class PocketMinecraftServer{
|
||||||
"save-console-data" => true,
|
"save-console-data" => true,
|
||||||
"query-plugins" => false,
|
"query-plugins" => false,
|
||||||
"discord-msg" => false,
|
"discord-msg" => false,
|
||||||
|
"discord-ru-smiles" => false,
|
||||||
"discord-webhook-url" => "none",
|
"discord-webhook-url" => "none",
|
||||||
"discord-bot-name" => "NostalgiaCore Logger"
|
"discord-bot-name" => "NostalgiaCore Logger"
|
||||||
));
|
));
|
||||||
|
|
@ -731,7 +732,7 @@ class PocketMinecraftServer{
|
||||||
"url" => $url,
|
"url" => $url,
|
||||||
"data" => array(
|
"data" => array(
|
||||||
"username" => $name,
|
"username" => $name,
|
||||||
"content" => str_replace("@", "", $msg)
|
"content" => $this->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)
|
||||||
),
|
),
|
||||||
), NULL);
|
), NULL);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue