MiraWaNeko / DiscordIntegration

Communicate between Minecraft and Discord
https://discordintegration.net
GNU Affero General Public License v3.0
88 stars 42 forks source link

commands results to "Unknown command" #137

Closed Cronosus closed 5 years ago

Cronosus commented 6 years ago

Base informations

Minecraft version: 1.7.10

DiscordIntegration version: 3.0.5

Link to pastebin with (censored) config: Optional http://pasted.co/f3751800

Expected behavior

executed command

Actual behavior

any nondiscord command return "Unknown command. Try /help for a list of commands" i think ist caused by / in command, console commands working without slash and if you add /,then in cosole have same result only commands with "discord .." working, but any custom command, not even default commands showed in example config v3, not working

Steps to reproduce

just add any command

Cronosus commented 6 years ago

just little ad. messages with playerJoin, playerLeft and playerDeath not working

Ricket commented 6 years ago

Your config has restart, tps, online, kick. Which of these doesn't work? Looks like restart has a typo, "astop" instead of "stop".

When player joins or leaves, is there any error in the server console?

Cronosus commented 6 years ago

restart and kick and any other i tried to add and yes, we have astop instead of stop (its timed stopping) and no errors with messages, in discord is typed default message in english, i dont know where is problem, maybe is this playerJoin, playerLeft and playerDeath not correct

when i type in console just "astop" then its normally executed, but when i rype "/astop" then i have this exact error "Unknown command. Try /help for a list of commands" then i think its caused by slash "/" added by mod to command

Mijago commented 6 years ago

In your configuration you use commandPrefix "!" but you want to issue the commands with "/", so i think you are trying to execute the commands ingame. These commands are for use in Discord only, the game itself does not know about them, hence the message.

Cronosus commented 6 years ago

i mean discord->minecraft commands and i tried with true and with false.. still have this "Unknown command. Try /help for a list of commands" discord tried to use command configured, but i think it uses wrong prefix or something problem is not "it cant use command" but problem is "it uses wrong command"

Mijago commented 6 years ago

I will have a look into this as soon as I port the v4 changes into the 1.7.10 branch.