From ee39cd29f6bdd471383744e49a907874f84576cc Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Tue, 18 Jun 2024 20:32:54 +0900 Subject: [PATCH] . --- PHI-CL/control.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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