T
thank you both for your input
i did this:
on rightclick on entity holding Diamond Axe:
if player has permission "hammer.use":
player is holding a Diamond Axe named "&4Jail Hammer"
cancel event
if entity is a player:
teleport entity to location(63, 105, 28)
execute console command "/jail entity jail1"
broadcast "&4&l%entity% got jailed by %player%"