PetteriM1 / DiscordChat

Sync Discord chat with your Nukkit server
https://nukkitx.com/resources/discordchat.137/
15 stars 10 forks source link

Chat doesn't communicate well #33

Closed WordPress24CZ closed 1 year ago

WordPress24CZ commented 1 year ago

Chat from Discord to game works fine, but from game to Discord not good. When a player joins or disconnects from the game, it will be posted on discord, but when someone writes messages in the game, they will not be posted to the Discord channel. Please how to fix it?

PetteriM1 commented 1 year ago

Please provide more information on your configuration and other plugins used. It's possible that you either don't have the feature enabled in config.yml or you have some chat formatting plugin which prevents it from working.

WordPress24CZ commented 1 year ago

config version, do not edit

configVersion: 9

bot token

botToken: "xxxxxxxxxxxxxxxxxxxxxxxxxx"

Discord server chat channel id

channelId: "xxxxxxxxxxxxxxxxxx"

enable debug messages

debug: false

set bot Playing __ status, leave empty to disable

botStatus: "www.bedrockland.eu"

set text channel topic, leave empty to disable

channelTopic: "bedrockland.eu"

enable !playerlist command on Discord

playerListCommand: true

enable !ip command on Discord

ipCommand: true

server address to show in !ip command

serverIp: "play.bedrockland.eu"

server port to show in !ip command

serverPort: "19132"

enable /discord [mute|unmute] command in game

discordCommand: true

/discord command default output

discordCommandOutput: "Připojte se na náš Discord server přes §e<bit.ly/bedrock-land>§f!"

enable join messages to Discord

joinMessages: true

enable quit messages to Discord

quitMessages: true

enable death messages to Discord

deathMessages: true

enable server start messages to Discord

startMessages: true

enable server stop messages to Discord

stopMessages: true

enable Discord messages to Minecraft

enableDiscordToMinecraft: true

enable Minecraft messages to Discord

enableMinecraftToDiscord: true

show Discord messages also in console

enableMessagesToConsole: true

prefix of discord commands

commandPrefix: "!"

enable Discord console

discordConsole: true

Discord server console channel id

consoleChannelId: "1179024616572850176"

role required to run console commands

consoleRole: "BedrockLand"

show server status messages in console

consoleStatusMessages: true

placeholders for chat formatting

%username%

%displayname%

%discordname%

%timestamp%

%message%

%role%

TODO: PlaceholderAPI implementation

formatting of Discord messages shown in game

discordToMinecraftChatFormatting: "§2[§3Bedrock§fLand§2 | %role%§2] §3%discordname% §e>> §f%message%"

formatting of game messages shown in Discord

minecraftToDiscordChatFormatting: "%primarygroup% | %displayname% >> %message%"

Discord messages over that length will be cut

maxMessageLength: 255

allow massages sent by a bot to show in game

allowBotMessages: true

enable spam filter (beta)

spamFilter: true

put sent messages in queue to avoid Discord chat getting delayed when lots of messages are being sent (recommended)

queueMessages: true

translations

status_server_started: ":white_check_mark: Server spuštěn!" status_server_stopped: ":x: Server zastaven!"

for in-game join message use %join_message%

info_player_joined: ":crossed_swords: %player% se připojil k serveru"

for in-game quit message use %quit_message%

info_player_left: ":fire: %player% opustil server" info_player_death: ":skull: %death_message%" command_playerlist_empty: "Žádní hráči online" command_playerlist_players: "Online hráči" commands_ip_address: "IP:" commands_ip_port: "Port:" err_no_perm: "Nemáte oprávnění ke spouštění příkazů konzoly" console_status_server_start: "Server se spouští..." console_status_server_stop: "Server se vypíná..." command_mute_success: "§aDiscord chat ztlumen" command_mute_already_muted: "§cDiscord chat je již ztlumen" command_unmute_success: "§aDiscord chat již není ztlumený" command_unmute_not_muted: "§cDiscord chat není ztlumený" command_generic_no_perm: "§cK použití tohoto příkazu nemáte oprávnění"

WordPress24CZ commented 1 year ago

Used LuckPerms and LuckChat plugins

PetteriM1 commented 1 year ago

LuckChat has a setting called "ChatAsync" which must be disabled. Also change your bot token as people already saw that message.