Ok so I just now got to work on adding the player in another world using your method and I get this error
non-static method addPlayer(Player) cannot be refrenced from a static context . What does it mean ?
public void enterDoor() {yeet2 w2 = new yeet2(); yeet2.addPlayer(); Greenfoot.setWorld(w2); }