# highly suggested: use list variables instead of regular ones ({afk::%player%} instead of {afk.%player%}, and same with the others)
# the problem: you are setting the variable to 15 (a number), and then trying to remove 1 second (a time span) from it. i would stick to numbers.