MCPcopy Create free account
hub / github.com/demoth/jake2 / RemoveCommand

Method RemoveCommand

qcommon/src/main/java/jake2/qcommon/exec/Cmd.java:254–261  ·  view source on GitHub ↗

Cmd_RemoveCommand

(String cmd_name)

Source from the content-addressed store, hash-verified

252 * Cmd_RemoveCommand
253 */
254 public static void RemoveCommand(String cmd_name) {
255 if (!cmd_functions.containsKey(cmd_name)) {
256 Com.Printf("RemoveCommand: " + cmd_name + " does not exist\n");
257 } else {
258 Com.Printf("RemoveCommand: " + cmd_name + " removed\n");
259 cmd_functions.remove(cmd_name);
260 }
261 }
262
263 public static String getArguments(List<String> args, int startIndex) {
264 if (args.isEmpty() || startIndex >= args.size())

Callers 2

ShutdownMethod · 0.95
R_ShutdownMethod · 0.95

Calls 2

PrintfMethod · 0.95
removeMethod · 0.80

Tested by

no test coverage detected