Only show compass menu if clicked by current player
ericyoondotcom opened this issue ยท 1 comments
I have the game running in it's own separate world. In order to take the plugin out I have to shut down the server. So that means that in order to run your plugin my server has to be dedicated to manhunt because the compass prompts you for the player name you want to track.. even when there is no hunt active.
So that was the basis of my question. Is there a way to blacklist worlds where the plugin will not function OR is there a possibility of the compass returning to normal when you are not in a Hunt.. making it so that ONLY the players that are currently involved in a hunt, so that ONLY their compasses behave as you have programmed them to be used during a hunt. NOT during normal play.
The best option seems to be to only show the compass menu to those who are playing (INCLUDING spectators). Make sure the /clearteams
command actually clears the team arrays too.