mirror of
https://github.com/layue13/MoonBridge.git
synced 2026-10-26 19:03:49 +00:00
16 lines
596 B
Java
16 lines
596 B
Java
package dev.strataproxy.api;
|
|
|
|
/** Registers player commands handled by this plugin at the proxy. */
|
|
public interface Commands {
|
|
/**
|
|
* Reserves a root command name. Names are case insensitive and unique across plugins.
|
|
* An unregistered command continues to the backend unchanged.
|
|
*/
|
|
CommandRegistration register(String name, CommandHandler handler, CommandCompleter completer);
|
|
|
|
/** Registers a command without argument completion. */
|
|
default CommandRegistration register(String name, CommandHandler handler) {
|
|
return register(name, handler, null);
|
|
}
|
|
}
|