BigBrotherBot/big-brother-bot

[FEATURE] allow the execution of commands to specific clients

Closed this issue · 3 comments

A friend brought to my attention a limitation of B3. Currently commands are bound to groups and a player can execute a command only if he's in that group. But what if I want a specific player to be able to execute a specific command while not being in the group required? I personally would like to have this feature and since I added the CmdManager plugin in the default B3 1.10 package I would implement such a feature in that plugin.

I would modify the Command class (declared in admin.py module) at runtime in order to edit the canUse() method to perform additional checks (in this way this change will be transparent to B3). The I would create 2 commands in the same plugin to add/remove command rights to specific clients.

Opinions?

sounds like the way to do it.

Have you looked at the TempLevel plugin? It has a different approach, and I believe solves a similar issue.

Yes I did, but that plugin basically just put a player into a group for a certain amount of time. Is not what I would like to achieve

implemented in #217