DenisD3D / Mc2Discord

Link your Minecraft server chat with your Discord (100k downloads)
https://modrinth.com/mod/mc2discord
Apache License 2.0
45 stars 12 forks source link

Allow certain commands for regular players #20

Closed Darkere closed 5 years ago

Darkere commented 5 years ago

There are a couple of commands (like /list and /forge tps and more) where would be nice if they were also available to regular players.

The discord presence can show the number of players online but clicking the bots name (especially if the last bot message is further up) is fairly unintuitive and also doesn't show who is online.

DenisD3D commented 5 years ago

How would you like I implement that? Would you like I make a list of command that is allowed? Use the minecraft permission level to select allowed command? I think if I use the last command it will allow player to get kit,... While offline

Darkere commented 5 years ago

I think a configurable list with some defaults makes the most sense.

As much as mod devs are amazing, I don't trust them to always setup permission levels correctly. At least not with how difficult making commands has gotten in 1.14.

Also in the future, there may be more commands that could be allowed for players. Like a clear inventory command that they could use to stop themselves from crashing.

DenisD3D commented 5 years ago

Would you like I set a message when you aren't allowed to use a command or just don't awnser ?

This is whithout my id in the config file. Just the "/discord" command name : image

Darkere commented 5 years ago

That is a difficult question. No answer is just bad IMO but answering every command attempt can spam the chat pretty quickly.

I think the best way of going about it is answering with something like:
"You don't have permission to use this command. Use /commands to see which commands you have access to".

And then ofc that second command that posts a list of the allowed commands (with special cases for operators lol).

DenisD3D commented 5 years ago

Perhaps can I override the help command while it will print every command if you allow it. Then i can ad inside every cammand allowed in the config

DenisD3D commented 5 years ago

Added in 1.1.0 who is available on curseforge... Sorry for the late update