you don't need to make your own boolean methods, just the the methods from Worlds class hopToP2pWorld(); plus i don't think you need to logout before, the method will probably log out/switch for you
i think the problem could be where you declared the npc inside the TAN but. u refer to it in the decision processing, and I feel like the decsion processing comes before the case TAN. I could be wrong dou xD
just a fix for this if anyone else in the future happens to get. you would need to use your registered email from gitweb when committing & pushing your script