Exiting auto specatate

i used the /auto spectate command to exit specating and it doesn't exit

You used /autospectate? Try using it in console "autospectate"

comes up you have been removed from spectator mode but its still spectating? 

To stop spectating type respawn in console. This is the intended behavior 

ahh my bad the plugin documentation says to exit type the comamnd again.

noticed this error when running the autospectate command through the keybind given in documentation https://pastebin.com/iKGHYVWU