diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index cb47d02..3425411 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -48,11 +48,17 @@ if settings.startup['PHI-PB'].value then player.print('Parameter need to be in range of 0 - 10') return end - + for _, v in pairs(items['bonus']['player_bonus']) do if v.enabled then game.players[command.player_index][v.name] = game.players[command.player_index][v.name] + (bonus / 10) end end + + if (bonus > 0) then + if (player.character) then + player.ticks_to_respawn = 120 + end + end end) end