Fully working code, PvP, PvC