Commands management

In bukkit there was a useful config allowing to operate serever commands (blocking and redirection or replace). It’s named: commands.yml

I didn’t find a similar plugin or function in a sponge whether exists?

In the different conf files for sponge there is a commands section that allows you to do similar stuff. Read more here global.conf — Sponge 7.2.0 documentation

Is it?

 commands {
    # A mapping from unqualified command alias to plugin id of the plugin that should handle a certain command
    aliases {}

But how I can use it?
command
aliases {
gm 1=gmc
}

That would require you to actually parse the arguments of the command. At that point we’re no longer talking about just redirecting commands themselves but instead redirect based on the arguments of the command. If that’s what you’re after you’ll probably have to use a plugin. I’m not sure, but this plugin might do what you want. me4502 / Aliases

1 Like

thank you very much!