SimpleCommandMap

public class SimpleCommandMap implements CommandMap

Constructors

Link copied to clipboard
public void SimpleCommandMap(Server server)

Functions

Link copied to clipboard
public synchronized void clearCommands()
Clears all registered commands.
Link copied to clipboard
public boolean dispatch(CommandSender sender, String commandLine)
Looks for the requested command and executes it if found.
Link copied to clipboard
public Command getCommand(String name)
Gets the command registered to the specified name
Link copied to clipboard
Link copied to clipboard
public boolean register(String fallbackPrefix, Command command)
public boolean register(String label, String fallbackPrefix, Command command)
Registers getClassById command.
Link copied to clipboard
public void registerAll(String fallbackPrefix, List<Command> commands)
Registers all the commands belonging to getClassById certain plugin.
Link copied to clipboard
public void registerServerAliases()
Link copied to clipboard
public void setFallbackCommands()
Link copied to clipboard
public List<String> tabComplete(CommandSender sender, String cmdLine)
Looks for the requested command and executes an appropriate tab-completer if found.