Ban Management

Ban Management

193k Downloads

BanManager clashing with Reporter

Opened this issue ยท 12 comments

commented

I use the plugin, BanManager, and I think it's great, it's exactly what I need but I have a small problem. I have another plugin with the functionality of reporting players. Now the command to report a player using that plugin is the same as this plugin and your plugin overrides it. I have tried removing the /report command from the source in your plugin but have been unsuccessful. I have also tried overriding the commands in the commands.yml file but this hasn't worked either. Would be very grateful for any solution. Thanks in advance

commented

Can you link to the plugin please?

commented

You should be able to override it via commands.yml in your server root

aliases:
  report:
  - reporter:report $$1-

Unfortunately spigotmc appears to be down right now so I can't see what the command base would be, so I've assumed it's reporter:commandName

commented

I tried that but it returns nothing when I add the arguments

commented

Try

aliases:
  report:
  - rreport $$1-

Ensure you are restarting the server when making changes to commands.yml and not using /reload

commented

That worked like a charm. Thank you very much for your assistance I very much appreciate it. <3

commented

Is it possible to do the same for the plugin ReporterGUI?

https://www.spigotmc.org/resources/reportergui.8596/

It seems that uses /report, and I cannot find any reporter:report or anything like that.

commented

Try like above with /reportergui as command.

commented

/reportergui command just display the "help" section of the plugin.

EDIT: It seems that there is an option to create alias from ReporterGUI itself, I guess I'll try to create an alias for the alias.

commented

Hello, little bit lost here but where is the commands.yml ?
I don't find it, he's in the BanManagers or the Report plugin ?

commented

The Commands.Yml is in the same directory as your server jar file.

commented

Thanks you man :)