Skip to content

Commit 333bc07

Browse files
committed
fix(core): Fix ExecuteCommand
1 parent 8c185b5 commit 333bc07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripting/server/player.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ void Bridge_Player_ExecuteCommand(int playerid, const char* command)
333333

334334
ConCommandRef cmdRef(cmd[0]);
335335

336-
if (cmdRef.IsValidRef())
336+
if (cmdRef.IsValidRef() && !cmdRef.IsFlagSet(FCVAR_SERVER_CAN_EXECUTE))
337337
{
338338
CCommandContext context(CommandTarget_t::CT_FIRST_SPLITSCREEN_CLIENT, CPlayerSlot(player->GetSlot()));
339339
cmdRef.Dispatch(context, cmd);

0 commit comments

Comments
 (0)