I want to make a hunting Minecraft map, and each hunter has a tracking compass that points to the nearest player. My friend said that I need a plugin or mod (I don't know what a plugin is!). The plugin thing seems to be complicated so I want to know if there's a way to do this with commands only.
I tried setting spawnpoints of the hunters to the hunted but this only works if the hunter dies: next time they respawn, the compass points to it but only where the hunted stood when the hunter died.
/execute @a[team=hunted] ~ ~ ~ /spawnpoint @a[team=hunter] ~ ~ ~