Hello, i want that whenever a player is trying to use a command while blocked it will send a message with the block time left.

for example:

im trying to use /home while combat blocked

it will return to the player "you are combat blocked (00:00 time left)"

i made a function which is turning the float to the 00:00 format, i just need to know how can i use it to do that.