Skip to content

Commit 0abee6d

Browse files
committed
BUGFIX:
- Filtering of kill events if punishment is enabled did not work
1 parent 39e6187 commit 0abee6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/mission/listener.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ async def onGameEvent(self, server: Server, data: dict) -> None:
829829
and data['arg3'] == data['arg6']:
830830
# do not report if the punishment plugin is active and teamkills are punished
831831
if self.bot.cogs.get('Punishment'):
832-
_config = self.get_config(server, plugin_name='Punishment')
832+
_config = self.get_config(server, plugin_name='punishment')
833833
if any(x for x in _config.get('penalties', []) if x.get('event', "") == 'kill'):
834834
return
835835

0 commit comments

Comments
 (0)