(client_t cl, String command)
| 807 | } |
| 808 | |
| 809 | private static void SV_ExecuteUserCommand(client_t cl, String command) { |
| 810 | |
| 811 | Com.dprintln("SV_ExecuteUserCommand:" + command ); |
| 812 | |
| 813 | List<String> args = Cmd.TokenizeString(command, true); |
| 814 | if (args.isEmpty()) |
| 815 | return; |
| 816 | |
| 817 | final GameImportsImpl game = games.get(cl.gameName); |
| 818 | if (userCommands.containsKey(args.get(0))) { |
| 819 | userCommands.get(args.get(0)).execute(args, game, cl); |
| 820 | return; |
| 821 | } |
| 822 | |
| 823 | if (game.sv.state == ServerStates.SS_GAME) |
| 824 | game.gameExports.ClientCommand(cl.edict, args); |
| 825 | } |
| 826 | |
| 827 | /** |
| 828 | * If a packet has not been received from a client for timeout.value |
no test coverage detected