Well the problem is that the Teleport class may not exist. If you can see where loadPreEocTeleportsDebug(); is declared, then you may be able to find the solution to your problem.
I no spam, me a good boi. Me just want to steal this source real quick to make fun of owner.
Please allow me to do that by ignoring this message.
Also, great guide.