DiscordSRV / Staff-Chat

A staff-chat plugin that hooks into DiscordSRV
MIT License
29 stars 11 forks source link

Disable or change command aliases #13

Closed schotje0013 closed 4 years ago

schotje0013 commented 4 years ago

Hello, I would like to remove the /schat and the /sc commands. It overlaps with another plugin I use. How is this possible?

RezzedUp commented 4 years ago

There are a few solutions to your overlapping-commands problem with varying degrees of complexity.


The simplest solution is using prefixed commands: <plugin>:<command> (e.g. somechat:schat and discordsrv-staff-chat:sc), but I do understand that prefixing commands is cumbersome and indequate.

Another solution, incorporating command prefixing above, involves either modifying the commands.yml file at the root of your server directory (which you can read about here) or installing an aliases plugin. Simply create an alias that executes the affected commands (i.e. an /sc alias that executes <plugin>:sc).


The third and final solution involves opening DiscordSRV-Staff-Chat.jar with a zip archive tool (like 7zip or winrar) and modifying the plugin.yml file included with the plugin. Simply remove the sc and schat aliases from the file.

Modify line 15 of plugin.yml from this:

aliases: [adminchat, schat, achat, sc, ac, a]

to this:

aliases: [adminchat, achat, ac, a]
schotje0013 commented 4 years ago

The last one worked for me! Thanks! I have another question, but i will open another ticket for that