Hide sm_stac_checkall, sm_stac_detections, sm_stac_getauth, sm_stac_livefeed from client, normally when a command doesn't exist, they will get "Unknown command" in the console. But since using Plugin_Handled, it returns nothing instead of erroring out. If we convert it to Plugin_Continue, it will show "Unknown command" client side.
These should also be converted to AddCommandListener, but that can be done later if you want.
Side note, these notifications can be used to spam the server with logs, not sure if you want to log every time someone hits them.
Hide
sm_stac_checkall
,sm_stac_detections
,sm_stac_getauth
,sm_stac_livefeed
from client, normally when a command doesn't exist, they will get "Unknown command" in the console. But since usingPlugin_Handled
, it returns nothing instead of erroring out. If we convert it toPlugin_Continue
, it will show "Unknown command" client side.These should also be converted to AddCommandListener, but that can be done later if you want.
Side note, these notifications can be used to spam the server with logs, not sure if you want to log every time someone hits them.
https://github.com/sapphonie/StAC-tf2/blob/51b3eb3862331e428c90234f491a951a6c638375/scripting/stac/stac_commands.sp#L22-L26