Player.getWorld returns WorldServer if server is integrated else a WorldClient in multiplayer