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

Method Rcon_Validate

server/src/main/java/jake2/server/SV_MAIN.java:356–362  ·  view source on GitHub ↗

Checks if the rcon password is corect.

(List<String> args)

Source from the content-addressed store, hash-verified

354 * Checks if the rcon password is corect.
355 */
356 private static boolean Rcon_Validate(List<String> args) {
357 String rconPassword = Cvar.getInstance().Get("rcon_password", "", 0).string;
358 if (rconPassword.isEmpty())
359 return false;
360
361 return args.size() >= 2 && args.get(1).equals(rconPassword);
362 }
363
364 /**
365 * A client issued an rcon command. Shift down the remaining args Redirect

Callers 1

SVC_RemoteCommandMethod · 0.95

Calls 5

getInstanceMethod · 0.95
GetMethod · 0.80
sizeMethod · 0.80
equalsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected