Checks if the rcon password is corect.
(List<String> args)
| 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 |
no test coverage detected