Some of this code includes my optimisations for it to be able to handle such a large amount of users. The Pathfinder is entirely mine but it is freely open sourced anyway in my Mango server. You also need to do some optimisations in the database if you want to host a lot of users with this.