This commit is contained in:
oof2win2
2021-04-05 15:10:20 +00:00
parent f8fc47e191
commit f6b5d35e01

View File

@@ -131,7 +131,7 @@ if config.Kills then
local character = event.cause -- Check character is valid
if not character or not character.valid or character.type ~= 'character' then return end
local player = character.player -- Check player is valid
if not player.valid or not player.connected then return end
if not player or not player.valid or not player.connected then return end
local entity = event.entity -- Check entity is valid
if not entity.valid or entity.force == player.force or entity.force.name == 'neutral' then return end
stat:increment(player)