mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-25 06:34:58 +05:00
Обновление команды Minecraft
This commit is contained in:
parent
d956fc56a2
commit
8f0a064ff0
4 changed files with 13 additions and 16 deletions
|
@ -62,19 +62,13 @@ class Minecraft extends Command {
|
|||
|
||||
const embed = new Discord.MessageEmbed()
|
||||
.setAuthor({
|
||||
name: message.translate("general/minecraft:FIELD_NAME", {
|
||||
ip: json.name
|
||||
name: json.name
|
||||
})
|
||||
})
|
||||
.addField(message.translate("general/minecraft:FIELD_VERSION"), json.raw.vanilla.raw.version.name)
|
||||
.addField(message.translate("general/minecraft:FIELD_CONNECTED"), message.translate("general/minecraft:PLAYERS", {
|
||||
count: (json.raw.players ? json.raw.players.online : json.players.length)
|
||||
}))
|
||||
.addField(message.translate("general/minecraft:FIELD_MAX"), message.translate("general/minecraft:PLAYERS", {
|
||||
count: (json.raw.players ? json.raw.players.max : json.maxplayers)
|
||||
}))
|
||||
.addField(message.translate("general/minecraft:FIELD_STATUS"), message.translate("general/minecraft:ONLINE"))
|
||||
.addField(message.translate("general/minecraft:FIELD_IP"), json.connect)
|
||||
.addField(message.translate("general/minecraft:FIELD_CONNECTED"), `**${(json.raw.players ? json.raw.players.online : json.players.length)}** ${message.getNoun((json.raw.players ? json.raw.players.online : json.players.length), message.translate("misc:NOUNS:PLAYERS:1"), message.translate("misc:NOUNS:PLAYERS:2"), message.translate("misc:NOUNS:PLAYERS:5"))} / **${(json.raw.players ? json.raw.players.max : json.maxplayers)}** ${message.getNoun((json.raw.players ? json.raw.players.max : json.maxplayers), message.translate("misc:NOUNS:PLAYERS:1"), message.translate("misc:NOUNS:PLAYERS:2"), message.translate("misc:NOUNS:PLAYERS:5"))}`)
|
||||
.addField(message.translate("general/minecraft:FIELD_IP"), json.connect, true)
|
||||
.addField(message.translate("general/minecraft:FIELD_VERSION"), json.raw.vanilla.raw.version.name, true)
|
||||
.addField(message.translate("general/minecraft:FIELD_PING"), json.raw.vanilla.ping.toString())
|
||||
.setColor(data.config.embed.color)
|
||||
.setThumbnail(favicon)
|
||||
.setFooter({
|
||||
|
|
|
@ -7,10 +7,9 @@
|
|||
"ONLINE": "Онлайн",
|
||||
"OFFLINE": "Оффлайн",
|
||||
"PLAYERS": "{{count}} игрок(а/ов)",
|
||||
"FIELD_NAME": "Информация об {{ip}}",
|
||||
"FIELD_VERSION": "Версия",
|
||||
"FIELD_CONNECTED": "Игроков на сервере",
|
||||
"FIELD_MAX": "Максимум",
|
||||
"FIELD_STATUS": "Статус",
|
||||
"FIELD_PING": "Пинг",
|
||||
"FIELD_IP": "Полный IP"
|
||||
}
|
|
@ -105,6 +105,11 @@
|
|||
"2": "пользователя",
|
||||
"5": "пользователей"
|
||||
},
|
||||
"PLAYERS": {
|
||||
"1": "игрок",
|
||||
"2": "игрока",
|
||||
"5": "игроков"
|
||||
},
|
||||
"BOTS": {
|
||||
"1": "бот",
|
||||
"2": "бота",
|
||||
|
|
|
@ -7,10 +7,9 @@
|
|||
"ONLINE": "Онлайн",
|
||||
"OFFLINE": "Оффлайн",
|
||||
"PLAYERS": "{{count}} гравець(я/ів)",
|
||||
"FIELD_NAME": "Інформація про {{ip}}",
|
||||
"FIELD_VERSION": "Версія",
|
||||
"FIELD_CONNECTED": "Гравців на сервері",
|
||||
"FIELD_MAX": "Максимум",
|
||||
"FIELD_STATUS": "Статус",
|
||||
"FIELD_PING": "Пінг",
|
||||
"FIELD_IP": "Повний IP"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue