aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/_mapspawn.gnut
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-22 16:46:49 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-22 16:46:49 +0000
commitfb32cb1b780c1169a834c951bc0c928199a2b59e (patch)
treee2435cc869fed0fa3f7c3d187335d2350b8b1e14 /Northstar.CustomServers/mod/scripts/vscripts/_mapspawn.gnut
parentdade102a0d4d14ba5ee560022b8e2f1ddf960977 (diff)
downloadNorthstarMods-fb32cb1b780c1169a834c951bc0c928199a2b59e.tar.gz
NorthstarMods-fb32cb1b780c1169a834c951bc0c928199a2b59e.zip
playtest fixes
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/_mapspawn.gnut')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/_mapspawn.gnut9
1 files changed, 6 insertions, 3 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/_mapspawn.gnut b/Northstar.CustomServers/mod/scripts/vscripts/_mapspawn.gnut
index 3efee093e..73e769100 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/_mapspawn.gnut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/_mapspawn.gnut
@@ -208,9 +208,12 @@ var function CodeCallback_ClientCommand( entity player, array<string> args )
}
else
{
- printl( "############################" )
- printl( "CommandString: " + commandString + " was not added via AddClientCommandCallback but is being called in CodeCallback_ClientCommand" )
- printl( "############################" )
+ if ( GetConVarBool( "ns_should_log_unknown_clientcommands" ) )
+ {
+ printl( "############################" )
+ printl( "CommandString: " + commandString + " was not added via AddClientCommandCallback but is being called in CodeCallback_ClientCommand" )
+ printl( "############################" )
+ }
return false
}
}