Files
MoonBridge/proxy-plugin-api/src/main/java/dev/strataproxy/api/Commands.java
T

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);
}
}