Skip to content

Commit

Permalink
udm.on_server_output(): Block hostage position messages
Browse files Browse the repository at this point in the history
Signed-off-by: BackRaw <[email protected]>
  • Loading branch information
BackRaw committed Jul 19, 2018
1 parent 44d5941 commit aeaaa93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addons/source-python/plugins/udm/udm.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,10 +388,13 @@ def on_server_activate(edicts, edict_count, max_clients):

@OnServerOutput
def on_server_output(severity, msg):
"""Block the warning that any bot has spawned outside of a buy zone."""
"""Block server warnings this plugin causes."""
if 'bot spawned outside of a buy zone' in msg:
return OutputReturn.BLOCK

if 'hostage position' in msg:
return OutputReturn.BLOCK

return OutputReturn.CONTINUE


Expand Down

0 comments on commit aeaaa93

Please sign in to comment.