* changed names referring to player where it does support mobs * also added an is_player() check in one function